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
As you tagged with jquery, a jQuery-powered solution should work for you:
$("").text("blehwhatever").html() Replace the argument to the text-method with whatever markup you want to escape. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Replace the argument to the text-method with whatever markup you want to escape.