Have a look at this page, its generated from an incoming RSS feed using the "FeedWordpress" plugin for Wordpress. I need to clean the html out of it so it stops breaking my page layout and know I need to use the php strip_tags function but don't know where to apply it??


2 answers

This was chosen as the best answer

Found a simple solution, just add this in your wordpress template wherever the content or excerpt is shown:

<?php echo strip_tags(get_the_excerpt());?>

Answered about 7 years ago by Leon Quinn
Marcel 57

Aww... yes i see you problem... I don't know yet about that Plugin, but if you can't do settings on it in the BE, you probably need to change the Plugin yourself. Maybe you could import it as plain text and then define the tags to remove from it. But thats gonna be much work in php or js or both.

Answered over 7 years ago by Marcel