This is a continuation of What's a good way to show parts of an element but hide the rest?
<h1>
Let's say you had this <span class="safe">text</span>.
</h1>
How could one wrap all non-safe
regions in an element with a disappear
class (with jQuery).
Final Output
<h1>
<span class="disappear">Let's say you had this </span>
<span class="safe">text</span>
<span class="disappear">.</span>
</h1>
That way, the parent node
is still visible, but the non-safe
regions disappear, leaving the safe
.
I'm not sure how to do this, but surely it's possible.