Split filter process into text processing and filtering

Created on 31 October 2012, about 12 years ago
Updated 21 August 2023, over 1 year ago

Note: This is a braindump issue right now.

- Two phases: Text processing (e.g., DOMDocument) and filtering (processor-specific).
- 1 format has exactly 1 processor + 0-n filters.
- Assume HTML for output, but not for input.
- HTML/DOM processor eliminates HTML corrector filter. (also: HTML5 eliminates or will eliminate HTML corrector filter.)
- Other text processors (e.g., markdown) have their own parsers and security filters.
- Convert URL + Local image + line-break filters into DOM-based filters, eliminating all the buggy PCRE nightmare.
- Text processor has settings, each filter can have settings.
- Simplify format settings UI into vtabs categories Γ  la "Security", "Macros/Replacements", "Enhancements", etc.
- Make processors and filters available outside of Filter module? (e.g., Text field summary, drupal_html_to_text())

Text processors in core:
- HTML/DOM
- Plain-text (all HTML escaped)

Add-on gimmicks:
- Add a HTML/DOM setting to control PHP DOM $formatOutput property (producing pretty HTML).

πŸ“Œ Task
Status

Postponed: needs info

Version

9.5

Component
FilterΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany sun Karlsruhe

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 smustgrave

    With almost 12 years of inactivity wonder if this is still a needed task?

  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    It kind of is still relevant. It would help make the filter system much more robust, because it'd no longer be up to the site builder to configure filter plugins to run in the exact right order.

Production build 0.71.5 2024