[Plugin: Relevanssi – A Better Search] strip_tags issue
-
Hello,
in function
relevanssi_index_doc()
,strip_tags()
is used at line 2353 :$contents = relevanssi_strip_invisibles($contents); $contents = strip_tags($contents); $contents = relevanssi_tokenize($contents);
It makes an issue with some text. For example :
<p>my text</p> <p>my second text</p>
We obtain
textmy
in the list of indexed words.
Isn’t it better to usepreg_replace()
, to replace tags by space and to get separated words to index ?Thank you for your answer.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Relevanssi – A Better Search] strip_tags issue’ is closed to new replies.