Visual HTML5 Layout: Pre-emptively strip <script> tags from input sources.

Created on 24 January 2023, over 2 years ago
Updated 25 January 2023, over 2 years ago

Problem/Motivation

The output sanitizer removes <script> tags from output, but leaves the inner markup in place. This causes display problems.

Steps to reproduce

Put on the hat of an irresponsible site builder and allow arbitrary javascript to be added to a wysiwyg (naught naughty).

Observe that the script is effectively defused, but the display is broken.

Proposed resolution

Strip the <script> tag and all text content therein before doing a diff compare.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States luke.leber Pennsylvania

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

Comments & Activities

Production build 0.71.5 2024