[Resolved] Remove markup for content?
I am working on a free child theme, that will use the Woo Themes Flex Slider in the header, I want to have an option to show text just like the_excerpt, the main slider will have up to 500 characters and the sidebar slider widget 150.
Here is what I have so far, both sliders working on the same page, if you allow the header slider to slide in the text you will see the issue !\”, \’ and \”:
Darling put her hand to her heart and cried, \”Oh, why can’t you remain like this for ever!\”
I am cleaning the content with this code to remove the html, like the_excerpt:
$content = wp_filter_nohtml_kses($content);
Any ideas on how I can return clean plain text?
- The topic ‘[Resolved] Remove markup for content?’ is closed to new replies.