I have a String :
"Name : Cool Dude's Hat"
When I am trying to submit it to a forum it errors, when I take out the '
part it works fine. How would I write Javascript code that removes it?
I have a String :
"Name : Cool Dude's Hat"
When I am trying to submit it to a forum it errors, when I take out the '
part it works fine. How would I write Javascript code that removes it?
Use regular expressions and try to match the the parts of string that follow the same pattern and then append a replace function in the js expression if it matches any part.