Hello,
I am a Perl programmer and have only used JavaScript minimally. I've been researching how to do simple search and replaces in JavaScript but can't find any good reference material. Basically, I want to know what the equivalent of this Perl statement would look like in JavaScript:
$html =~ s/\'/'/g;
I am trying to replace the single quote character with its corresponding html code.
Any help will be appreciated.
I am a Perl programmer and have only used JavaScript minimally. I've been researching how to do simple search and replaces in JavaScript but can't find any good reference material. Basically, I want to know what the equivalent of this Perl statement would look like in JavaScript:
$html =~ s/\'/'/g;
I am trying to replace the single quote character with its corresponding html code.
Any help will be appreciated.