For example, I have a test page like this:
index.html:
<p>This is how you should write paragraphs in HTML:</p>
<div id="example">
<p>Foo</p>
</div>
If I open this page in the browser, I want to see both text and tags:
This is how you should write paragraphs in HTML:
<p>Foo</p>
How it may be automatically done with js?
Yes, I can manually replace <
and >
by <
and >
, but I want to avoid manual work.
<p>
-Tag to be a<p>
-Tag (as in<p><p> [...] </p></p>
)?