- Issue created by @duaelfr
- Status changed to Needs review
about 1 year ago 1:21pm 14 March 2024
Followup to 🐛 Paragraph tags are not stripped if the p tag has attributes like dir=ltr or title Fixed
By using DOMDocument::loadHTML()
, we might raise a lot of warnings because it's not supporting HTML5 markup (as stated in the documentation comments).
Drupal Core fixed this by relying on the HTML5-PHP library →
instead of directly using DOMDocument.
<mark>
)Use Drupal Core's HTML::load()
instead of our custom DOMDocument implementation so people using Drupal 10.2.x won't have warnings anymore.
Needs review
1.0
Code