Preventing HTML and Script injections in Javascript
You can encode the < and > to their HTML equivelant. html = html.replace(/</g, “<”).replace(/>/g, “>”); How to display HTML tags as plain text
You can encode the < and > to their HTML equivelant. html = html.replace(/</g, “<”).replace(/>/g, “>”); How to display HTML tags as plain text