wpdreams / ajax-search-pro-development

Issues and dev tracking repository for Ajax Search Pro for WordPress plugin
0 stars 0 forks source link

Advanced Content field - HTML tag stripping should be changed #104

Closed ernestmarcinko closed 3 months ago

ernestmarcinko commented 3 months ago

As of a recent change in 4.26.6, the advanced title and content fields are separately processed and the HTML is removed during the post-process.

In most cases this is undesired, as well as causing issues with some built in fields like _price_html - where the <del> and <ins> tags are removed.

$value = Html::stripTags($value, $sd['striptagsexclude']);

https://github.com/WPDreams/ajax-search-pro/blob/3937f2f178df523ceb721db46b5c134ed4bbcf65/includes/classes/Search/SearchPostTypes.php#L1663-L1672

Solution

ernestmarcinko commented 2 months ago

Solution