WordPress.org

Support

Support » Plugins and Hacks » CM Tooltip Glossary » [Resolved] Single quotes in tooltip are slashed

[Resolved] Single quotes in tooltip are slashed

  • In version 2.2.3 a single quote in a definition gets a backslash added in front of it in the tooltip. I traced it to glossary.php:255:

    $glossaryItemContent = addslashes($glossaryItemContent);

    guessing that the intent is to make the content attribute-safe, I changed it to this to fix the issue:

    $glossaryItemContent = esc_attr($glossaryItemContent);

    http://wordpress.org/plugins/enhanced-tooltipglossary/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Single quotes in tooltip are slashed’ is closed to new replies.
Skip to toolbar