Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js escape ampersand

yourString.replace("&", "u0026")
// or if you want to use it in backend, do like this
yourString.replace("&","u0026")
// and in the backend just replace it with "&" again
 
PREVIOUS NEXT
Tagged: #js #escape #ampersand
ADD COMMENT
Topic
Name
2+5 =