INTEREST JOURNAL DRUPAL & WEB

Drupal Guide in Detail: 6.15 Understanding Text Formats, Editors and XSS

About 400 words 3 min read

Japanese ↗
On this page

Detailed guide. An unofficial adaptation of User Guide 6.15. Source updated April 14, 2025; reviewed November 6, 2026. No running-Drupal procedure test has been performed.

Official source ↗ · Previous: 6.14 Understanding Responsive Image Styles · Chapter 6 overview · Next: 6.16 Configuring Text Formats and Editors

Stored text and filtered output

Text formats combine filters that process HTML and text before display. Original text is stored with its format; filters transform the output. The core Filter module provides this system. Basic HTML, Restricted HTML and Full HTML are the source’s Standard-profile examples; inspect the actual installation.

Editors and permissions

Text Editor associates a format with an input editor. Editing assistance and output filtering are distinct: removing toolbar buttons alone does not enforce safe HTML. The source’s CKEditor wording should be interpreted against the actual CKEditor 5 configuration on Drupal 11.

Each format has a permission. Reserve permissive formats for trusted users. XSS can execute attacker-controlled script in someone else’s browser and enable actions with their privileges.

Security notes

SA-CORE-2026-011 ↗ fixes HTMX-related XSS in Drupal 11, first in 11.4.4 and 11.3.14. Drupal 10 core is not vulnerable; 10.6.13 adds hardening for some extensions.

For optional filters, check 309 ↗ for Extended HTML Filter, 314 ↗ for htmLawed with SQLite and an older library, and 315 ↗ for a different htmLawed condition. Advisory 315 also requires checking that affected formats’ deny_attribute settings include data-hx-*.

For Entity Print with Dompdf, update to a fixed release and review remote URL settings and access to formats that allow external images or stylesheets. SA-CONTRIB-2026-327 ↗ · November 12 review

Our verification examples

Inspect enabled formats, role permissions, allowed HTML, filter order and extension versions. Do not apply contributed-filter conditions indiscriminately to core-only sites. Permission management does not replace security updates. Continue to 6.16 .

Sources, credits and changes

Source: Drupal User Guide 6.15 ↗ . Contributors and source links listed in its Attributions: Boris Doesborg ↗ · Jennifer Hodgdon ↗ . Refer to the source for writing, editing and adaptation roles, and to the guide-wide credits ↗ .

Copyright remains with the individual contributors; the official copyright page ↗ states © 2015–2025. Changes include reorganized explanations and procedures, our preparation and verification examples, troubleshooting notes, source-interpretation qualifications and release references. Original screenshots and videos are not reproduced. This adapted text is shared under CC BY-SA 2.0 . It is not an official edition or endorsement. This notice does not license unrelated articles or the site design.

Previous: 6.14 Understanding Responsive Image Styles · Chapter 6 overview · Next: 6.16 Configuring Text Formats and Editors

Chapter 5 details · Chapter 7 details · All chapters · Search official information

Back to chapter contents ↗