Using replaceWith to populate HTML tags
<p>I know that</p>

<pre><code>$('p.heading').replaceWith('Welcome');
</code></pre>

<p>will replace the entire <code>&lt;p&gt;</code> tag with the text 'Welcome'</p>

<p>How do I just replace the contents, so I end up with <code>&lt;p class="heading"&gt;Welcome&lt;/p&gt;</code> ?</p>

<p>Perhaps replaceWith is the wrong function?</p>
