Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webheadcoder

    (@webheadllc)

    let me type that again.

    Something like “Joe’s Burger” appears like “Joe &-#-8-2-1-7-;s Burger” in the email’s subject

    Without the hyphens.

    Oli Ward

    (@oliwardgmailcom)

    I can confirm the same, but sharing to Twitter.

    I believe due to esc_attr()on line 99:

    $strPageTitle = esc_attr(strip_tags($strPageTitle));

    This is from the plugin file simple-share-buttons-adder/inc/ssba_buttons.php (version 6.1.1).

    Which WordPress documentation tells us

    Encodes the <, >, &, ” and ‘ (less than, greater than, ampersand, double quote and single quote) characters.

    I believe it is encoding apostrophe to HTML entity, which is then used directly by Twitter, or the email sharing functionality.

    I’m not sure if it is relevant, but I’m directly calling the ssba_buttons() function, not using do_shortcode().

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single Quote (apostrophe) not displaying correctly’ is closed to new replies.