Problem/Motivation

It would be great if there was support for making changes to the HTML tag restrictions of Text Formats more easily. Currently, allowed HTML tags and their attributes are a simple string of text for example <span class> <a href class> <img alt> <p>

This makes adding new tags, or adding/removing attributes hard to do programmatically.

Proposed resolution

Add a Text Format service that adds some helper functions to make this easier.

User interface changes

None

API changes

New service for adding/removing tags and attributes.

Data model changes

None

Issue fork helper-3332053

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

owenbush created an issue. See original summary.

owenbush’s picture

Status: Active » Needs review

Moving to needs review after creating MR.

owenbush’s picture

Issue summary: View changes

Dave Reid made their first commit to this issue’s fork.

dave reid’s picture

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.