Forum
tweetHTML not encoding HTML
Hey,
I'm trying to use the <perch:twitter id="tweetHTML"/> tag in a template that's stored in /templates/twitter/.
It's being called from this code:
<?php
perch_twitter_get_latest(array(
'twitter_id'=>'pixelanddot',
'type'=>'mine',
'count'=>3,
'exclude_replies'=>false,
'template'=>'twitter/tweets.html'
));
?>
It's working but the page is displaying the HTML rather than encoding it.
Any idea what's going on?
Thanks, Barney
What does your template look like?
Hi Rachel,
Like this currently:
Thanks, Barney
Add encode="false" to the tweetHTML tag.
Thanks Rachel, that worked! :)