javascript escape html
function escapeHtml(str) {
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
}
Also in HTML:
- favicon in html
- jquery option selected value
- how to link javascript to html
- comment html
- what is relu in tensorflow
- page dans un nouvelle onglet html
- link javascript to html
- bold html
- html5 input error message
- ubuntu vmplayer
- ionic badge
- best way to display a pdf in html
- how to add space in html
- add a caption of picture html
- bootstrap display inline block
- html textarea locked
- turn off autocomplete input html
- ui and li in html
- ff
- ubuntu vm workstation 12
- pass dynamic javascript value to html
- tab completion vscode
- how to make a clock in html/javascript
- html basic structure