Thursday, 7 September 2017
To replace special character using JavaScript
To replace special character using JavaScript
function replaceTextBoxValue(mystring)
{
return mystring.replace(/>/g, ">").replace(/</g, "<").replace(/'/g, "'");
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment