January 19, 2012
by Helen Triolo
0 comments

Beware of stray apostrophes

One stray apostrophe or double quote in a string of javascript variables can keep everything after it from working. One way to get rid of them: $row['title'] = str_replace(“‘”, “'”, $row['title']) $row['title'] = str_replace(‘”‘, ‘"’, $row['title']) Other replacement entity numbers … Continue reading