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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -