Hello,
I need a nudge in the right direction. I have a line of php that outputs a title from a newsfeed. The news uses html tags in the title and when they’re brought over they break because the plugin I’m using doesn’t support html tags.
Example: Tech battle with 'patent trolls'
That’s fine. I don’t need the html tags in the title. What I would like is to completely strip out the html tags leaving only the post title. Here’s the line:
<?php echo $feed->itemTitle; ?>
I’ve tried this:
<?php echo strip_tags($feed->itemTitle); ?>
But it’s having no affect on the title - i.e., the title still renders as above.
Any ideas on what I’m doing wrong?