Use addslashes to fix titles with single quote causing JS error
-
Hey there,
Just had an issue with a title that had single quote causing JS error and complete fail of buttons, workaround for now was to change the title, but I would recommend making a change to class.mashsharer.php so you are using addslashes() on the title output here on line 196:
mashFbSharrer(\'' . $url . '\',\'' . esc_html($title)
For example:
esc_html(addslashes($title))
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use addslashes to fix titles with single quote causing JS error’ is closed to new replies.