This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

not stripped from description

Home Forums Product Support Forums Ajax Search Pro for WordPress Support not stripped from description

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18989
    quasizeroquasizero
    Participant

    Hi there,

    I’m using your plugin on the RESOURCES page of a client website and noticed this morning that javascript is visible in the description. The script tag is gone but the code is still there.

    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?

    Cheers

    #18991
    quasizeroquasizero
    Participant

    should have written script tag in the title since the actual tag did get stripped here.

    #19000
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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:

    [php]$_content = wd_strip_tags_ws( $r-&gt;content, $sd[‘striptagsexclude’] );[/php]

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.