noscript content appearing when HTML is being stripped

Created on 25 March 2021, over 3 years ago
Updated 6 September 2023, about 1 year ago

I'm experiencing the same problems listed in this issue but this time with the <noscript> tag. When adding a code like this:

<noscript>&amp;amp;lt;a href='#'&amp;amp;gt;&amp;amp;lt;img alt='17 ' src='https:&amp;amp;amp;#47;&amp;amp;amp;#47;public.tableau.com&amp;amp;amp;#47;static&amp;amp;amp;#47;images&amp;amp;amp;#47;Wo&amp;amp;amp;#47;Workbook-1_1&amp;amp;amp;#47;17&amp;amp;amp;#47;1_rss.png' style='border: none' /&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;</noscript>

When stripping the HTML I ended up seeing the following:

&lt;a href='#'&gt;&lt;img alt='17 ' src='https:&amp;#47;&amp;#47;public.tableau.com&amp;#47;static&amp;#47;images&amp;#47;Wo&amp;#47;Workbook-1_1&amp;#47;17&amp;#47;1..

🐛 Bug report
Status

Postponed: needs info

Version

2.1

Component

Code

Created by

🇪🇸Spain altrugon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States ultimike Florida, USA
  • 🇮🇪Ireland lostcarpark

    Just a thought on this issue...

    Adding a list of of tags to strip to the settings would seem to add complexity and not be very flexible.

    Would a better approach be to add a hook that gets called, passing in the pre-strip text, and the hook could perform whatever stripping it needs, and return the stripped text, that then gets used by Smart Trim?

Production build 0.71.5 2024