JSFiddle - React, Tailwind, and code Playground
by cranio
HTML
<!DOCTYPE html>
<html>
<body>
<ul class="topnav">
<li>Item 1</li>
<li>Item 2
<ul><li>Nested item 1</li><li>Nested item 2</li><li>Nested item 3</li></ul>
</li>
<li>Item 3</li>
</ul>
<div>DIV1</div>
<div>DIV2</div>
<span>SPAN</span>
<table>
<tr>
<td>Username</td>
</tr>
<tr>
<td>Password</td>
</tr>
</table>
<p>
<input type="checkbox" name="remember" tabindex=3 />
<label for="checkbox">Remember <strong>password</strong></label>
</p>
<p>Click here to <a href='register.php'>Register</a></p>
</body>
</html>
JavaScript
$("body *").contents().wrap("<obscure></obscure>");
$("obscure").each(
function(i,e)
{
if ($(e).children().length==0)
$(e).replaceWith("@@@@");
}
);
$("obscure > *").unwrap();