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

html in parsed text issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #53510
    kerry_avxzkerry_avxz
    Participant

    Hi, hope you can help.

    In some of my result listings I begin to have a strikethrough <s> tag added.
    Is this part of a function of ASP pagination, or from some other setting?
    Example : https://archivesdundee.wpenginepowered.com/?s=1912&asp_active=1&p_asid=1&p_asp_data=1&termset%5Battachment_category%5D%5B%5D=18&filters_initial=1&filters_changed=0&qtranslate_lang=0&asp_highlight=1&current_page_id=2842

    I am also wondreing if it is coming from the parsed text that is a pop up from the middle view text icon on the end of the listing row, as it seems to start there.

    The media file related parsed content has <S)bituar> intead of Obituary. this then seems to get rendered as <s> tag with no closing so repeats.

    A few screenshots attached.

    If it is the parsed text, is there a way to not have it add <> or any html on media files parsed content. I have tried removing with script but doesn’t seem to help.

    #53518
    kerry_avxzkerry_avxz
    Participant

    Hey there, fresh eyes this morning and realised what i can do with this as it isnt a problem with ASP but its the parsed text thats the issue.
    I have added the following to my code to strip the content area:

    $pdf_asp_content = get_post_field( ‘_asp_attachment_text’, $post_id );
    $sanitised_content = wp_strip_all_tags( $pdf_asp_content );
    echo $sanitised_content;

    this then still allows for Highlighter on the content 🙂

    #53519
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Oh okay, that explains it. ASP does not change the output of Elementor or other filtered elements, so it must be coming from somewhere.

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