Quantcast
Channel: Remove HTML from PHP String - Wordpress RSS Feed Template - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Gaurav for Remove HTML from PHP String - Wordpress RSS Feed Template

use this one.wp_filter_nohtml_kses( string $data );check this link.https://developer.wordpress.org/reference/functions/wp_filter_nohtml_kses/

View Article



Answer by James for Remove HTML from PHP String - Wordpress RSS Feed Template

You can wrap str_replace with strip_tags like this:<?phpfunction the_content(){ echo '<p>&nbspContent</p>';}$content = the_content();echo str_replace('...

View Article

Remove HTML from PHP String - Wordpress RSS Feed Template

Thanks for all the help; nothing working as of yet, so adding more detail.I'm using the below function in functions.php to allow me to use my own RSS template, which is working fine.add_action('init',...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images