javascript - How to show escapeHTML4 string in unescaped format -


i have used escapehtml4 function in backend add escape characters block xss attack. have been assigned requirement should shown user.

requirement user should see user enters if might script attack.

there way can done? example user enters "'>">img src=x onerror=alert(1)>'
need show '>">img src=x onerror=alert(1)>'. think possible way in javascript. unable find function capable convert output of escapthtml output original one.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -