Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aaron@rossano.com.au

    (@aaronrossanocomau)

    funny enough it’s the symbols that are encoding correctly.

    plain: ‘
    symbol: ‘

    This is how the tweet came out: Plain: ' Symbol: ‘

    Thread Starter aaron@rossano.com.au

    (@aaronrossanocomau)

    identified the issue is related to hashtags converted to links before the text is set as html symbols.

    Thread Starter aaron@rossano.com.au

    (@aaronrossanocomau)

    fix: the regular expression needs to exclude tags the start with ‘&’.
    /includes/class-timeline-twitter-feed-shortcode.php
    line 147:
    $text = preg_replace( '(#([a-zA-Z0-9\_]+))', '<a href="http://twitter.com/search?q=%23\\1" target="_blank" rel="nofollow">\</a>', $text );
    change to:

    $text = preg_replace( '/(?<!&)#(\w+)/i', '<a href="http://twitter.com/search?q=%23\\1" target="_blank" rel="nofollow">\</a>', $text );

    It needs to be fixed in other places, hopefully you can implement the solution across the plugin on the next update.

    Plugin Author ezraverheijen

    (@ezraverheijen)

    This is fixed in version 1.0
    Thanks for reporting!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Encoding’ is closed to new replies.