Single quote problem
-
Tooltip terms with a single quote do not work (plugin version 3.3.6).
Replacing
$normalizedTitle = str_replace( ''', "’", preg_quote( htmlspecialchars( trim( $title ), ENT_QUOTES, 'UTF-8' ), '/' ) );
by
$normalizedTitle = preg_quote( htmlspecialchars( trim( $title ), ENT_COMPAT, 'UTF-8' ), '/' );and
$glossary_title = str_replace( ''', '’', preg_quote( htmlspecialchars( trim( $glossary_item->post_title ), ENT_QUOTES, 'UTF-8' ), '/' ) );
by
$glossary_title = preg_quote( htmlspecialchars( trim( $glossary_item->post_title ), ENT_COMPAT, 'UTF-8' ), '/' );fixed the problem. I understand the code was supposed to change single quote ‘ to ’. Why is it so?
The topic ‘Single quote problem’ is closed to new replies.