Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: character to ascii javascript 
Javascript :: if json valide js 
Javascript :: Delete spaces in text in javascript 
Javascript :: jquery get top position of element on scroll 
Javascript :: express session destroy 
Javascript :: react router 404 redirect 
Javascript :: js get meta content 
Javascript :: divide array of objects to 4 arrays js 
Javascript :: bootstrap tabs click event jquery 
Javascript :: jquery each 
Javascript :: javascript tan 
Javascript :: is intersectionobserver supported in browser 
Javascript :: save json file python 
Javascript :: how to clamp a value 
Javascript :: get width of a dom element js 
Javascript :: javascript get data attribute of selected option 
Javascript :: focus input field in modal 
Javascript :: github authorization javascript 
Javascript :: js last element of array 
Javascript :: make page refresh on top in react js 
Javascript :: react jsx style with calc 
Javascript :: locate and delete an object in an array 
Javascript :: popup alert in flutter 
Javascript :: how to create an anchor tag in javascript 
Javascript :: insert value to html input with javascript variable 
Javascript :: remove blank space javascript 
Javascript :: js check if string is base64 
Javascript :: nodejs require everything without prefix 
Javascript :: remove prefix js 
Javascript :: get value of element html js 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =