Allow inline style to certain html elements despite of "Limit allowed HTML tags and correct faulty HTML" filter turned on

Created on 13 February 2022, over 2 years ago
Updated 14 November 2023, 7 months ago

"Limit allowed HTML tags and correct faulty HTML" filter strips inline css.
I know actually this is works as designed:

A list of HTML tags that can be used. By default only the lang and dir attributes are allowed for all HTML tags. Each HTML tag may have attributes which are treated as allowed attribute names for that HTML tag. Each attribute may allow all values, or only allow specific values. Attribute names or values may be written as a prefix and wildcard like jump-*. JavaScript event attributes, JavaScript URLs, and CSS are always stripped.

I think in several use cases it would be helpful if this filtering should be able to be turned off for some html tags.
The method could be similar as any other parameter: specify style tag to a desired html element in the field Enabled filters
So e.g. this way could be enable inline css to table element:

<table style>
Feature request
Status

Active

Version

11.0 🔥

Component
Filter 

Last updated about 10 hours ago

No maintainer
Created by

🇭🇺Hungary kepesv

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

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.

Production build 0.69.0 2024