- August 17, 2018 at 9:40 am #18989
For instance, when you search for MAR, the first item, Marketer’s guide… shows Marketo script in the description. Scroll down a bit and you’ll see some /* */ comments lines also. The image I uploaded should make it clear also.
I looked at your code a bit in post_process() and it looks like you are stripping out the <script> and <style> tags there but it’s not working for some reason? Any ideas?
Attachments:You must be logged in to view attached files.August 17, 2018 at 9:43 am #18991
should have written script tag in the title since the actual tag did get stripped here.August 17, 2018 at 1:25 pm #19000
I believe you may have found a bug, a I was able to replicate this issue on a local installation. To resolve it termporarily you will have to make a small modification to the main search file. Before doing so, please make sure you have a full site back-up of everything.
1. Open up the wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-search-cpt.php file
2. Scroll to line 1749 (or around that), which should be:
$_content = wd_strip_tags_ws( $r->content, $sd['striptagsexclude'] );
3. Change that to simply:
4. Save the file.
This should solve the issue.
I will make sure to include a permanent solution in the upcoming version.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.