Closed PatelUtkarsh closed 3 years ago
Hey @PatelUtkarsh !
strip_tags
preserve content from style and script tags, Some of the Gutenberg blocks like to have inline script / style which appears in search results.
I'm not 100% I understand. Can you share an example of what you're trying to solve for?
Hello @danielbachhuber :)
We are having a style tag as the starting of the post_content
which results in an output of style as the post doesn't have post_excerpt
details filled in causing style content to show up in the result when using with solr.
Example difference:
wp_strip_all_tags('')
Outputs to '' (empty string)
strip_tags('');
Outputs to .bold{ font-weight: 700; }
strip_tags
preserve content from style and script tags, Some of the Gutenberg blocks like to have inline script / style which appears in search results.