• Resolved tc19

    (@tc19)


    Hi,

    How can I remove html code from search result?

    Regards

    Thierry

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Something – your theme likely – is escaping the HTML code in the excerpts. It should not be escaped; it should be printed as is.

    Either remove the HTML code escaping or disable the Relevanssi custom excerpts.

    Thread Starter tc19

    (@tc19)

    Hi

    I removed esc_html in the theme’s search module:

                        <p itemprop="description" class="qodef-post-excerpt"><?php echo wp_trim_words( esc_html( $qodef_my_excerpt ), 30 ); ?></p>

    And it’s OK

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML code in the excerpts’ is closed to new replies.