Add configurable option to retain inline style attributes

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

Problem/Motivation

Some components require inline styles to operate properly, but they are stripped from the diff output.

Proposed resolution

There is an existing issue ( https://www.drupal.org/project/drupal/issues/2544110 πŸ› XSS attribute filtering is inconsistent and strips valid attributes Needs work ) for the built-in XSS filter being overly zealous in stripping things. The filter does, however allow data-* attributes. This feature should...

  1. Convert style attributes to data-diff-plus-style attributes before XSS filtering.
  2. Convert data-diff-plus-style attributes back to style attributes after XSS filtering.
✨ Feature request
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