Javascript Project to Remove a From String Using Regular Expression in Browser

You are currently viewing Javascript Project to Remove a From String Using Regular Expression in Browser

Javascript Project to Remove amp; From String Using Regular Expression in Browser

var urlString = '@Model'.replace(/&/g, '&');
console.log(urlString);

var str = 'Something & Else && Here';
alert( str );
alert( str.replace(/&/g, '&') );

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply