Support » Fixing WordPress » Remove markup for content?

  • Hi,
    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?



Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Remove markup for content?’ is closed to new replies.