Standard URI escape along with single and double quotes


JavaScript


var tmp = "string to escape"

var title = encodeURIComponent(tmp).replace(/'|"/g, escape);

Written by fbrefere001

Posted by fbrefere001 on Thursday March 6, 2025