SyntaxFix
Write A Post
Hire A Developer
Questions
You can encode the < and > to their HTML equivelant.
<
>
html = html.replace(/</g, "<").replace(/>/g, ">");
How to display HTML tags as plain text