Can you please take a look at This Demo and let me know how I can loop through and element like <pre> and replace all < and > with some new characters like:
.replace("<", "1");
.replace(">", "2");
if we have a <pre> like
<pre>
< This is a test < which must > replace >
</pre>
Thanks