Answers for "avoid html injection"

0

avoid html injection

//You can encode the "<" and ">" to their HTML equivelant
html = html.replace(/</g, "<").replace(/>/g, ">");
Posted by: Guest on January-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language