Support » Plugin: Relevanssi - A Better Search » Exclude html tags with class from highlighting (3)

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

    (@msaari)

    Does it solve the problem if you change the regex from

    if ( preg_match_all( '/<(style|script|object|embed|pre|code).*<\/(style|script|object|embed|pre|code)>/U', $content, $matches ) > 0 ) {

    to

    if ( preg_match_all( '/<(style|script|object|embed|pre|code).*<\/(style|script|object|embed|pre|code)>/Us', $content, $matches ) > 0 ) {

    ?

    Thread Starter Sany

    (@sannny)

    Yes 🙂

    Plugin Author Mikko Saari

    (@msaari)

    Good, I’ll set it that way in the next version.

    Thread Starter Sany

    (@sannny)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude html tags with class from highlighting (3)’ is closed to new replies.