Is it possible to convert html tags to html entities using javascript/jquery using any way possible such as regex or some other way. If yes, then how?
Exampl
There's a concise way of doing this using String.prototype.replace() and regular expressions as follows:
String.prototype.replace()
var tag = "This should be bold and big"; var escapedTag = tag.replace(//g, ">");