I would like to know how to replace the < />
symbols with Javascript. I'm using the <code></code>
tag to display a code, but I do not want it to be rendered in the browser. I know I can use <
and >
to display a < tag / > so I would like to know if there is a way to do Javascript do this for me, look for the symbols and automatically replace them so the code is not rendered.
I know of the existence of utilities like Syntax Highlighter, but for that case I only need to display the code on a single page and I do not think it would be interesting to add it to the page.