replace hyphen with a space for the text given in the div
<pre><code>&lt;div&gt;This-is-text-1&lt;/div&gt;
</code></pre>

<p>Given the code line</p>

<pre><code>var value = $('div').text();
</code></pre>

<p>I need to replave the hyphens <code>-</code> to an empty space <code></code>. The output I require is " This is text 1 "How can I use the jQuery replace function here?</p>
