Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter phpadam

    (@phpadam)

    I fixed this by assigning the value of $return_data['status'] to a variable and then running htmlspecialchars_decode

    The full code as displayed in my template file is something like this:

    $return_data = simple_twitter_data('user=mytwittername&data=name,status,image,relative');
    $thenewtweet = $return_data['status'];
    $thenewtweet = htmlspecialchars_decode($thenewtweet);
    echo '<p class="fptweeter"><b><a href="https://twitter.com/#!/mytwittername" target=_blank>MyTwitterName</a></b> Latest Tweet [' . $return_data['relative'] . '] </p><p class="fptweet"> ' . $thenewtweet . '</p.>'

    It seems to work

    Thanks for letting me know – I’ll add this fix to the next release.

    David.

    I’ve now released version 2 which fixes this. However, htmlspecialchars_decode limits the plugin to PHP 5, so I’ve used my own function to achieve it instead.

    David.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Simple Twitter Data] QUotation marks in tweet are appearing as &quot’ is closed to new replies.