Hide a string using jQuery?
<p>I want to hide strings inside a div. Consider the following example where I want to hide "some".</p>

<pre><code>&lt;div id="Disappear"&gt;Here is some text.&lt;/div&gt;
</code></pre>

<p>After calling the function it should be</p>

<pre><code>&lt;div id="Disappear"&gt;Here is      text.&lt;/div&gt;
</code></pre>

<p>Notice that the space remains reserved. Also the sentence and string to be hidden are random. </p>

<p>What have I tried?</p>

<p>Replacing the string with spaces. The solution is not elegant, since the width of the spaces can't always be equal to the string.</p>

<p><strong>UPDATE</strong> I can't use <code>&lt;span&gt;</code> either. The actual div contains a lot more strings, using span is not an option.</p>
