Issue with HTML ` ` not being correctly filtered out

Created on 8 May 2024, 8 months ago
Updated 7 August 2024, 5 months ago

Problem/Motivation

Hey, After updating to Drupal 10.2.5, I've encountered an issue in one of my projects where our automated tests related to the HTML filter are failing. The problem arises with HTML content that includes a non-breaking space (` `) within a URL, which should not be part of the URL.

Steps to reproduce

In our content, we have a `p` element with a URL that includes a non-breaking space at the end:

    For details of the Last Post Service: https://www.shrine.org.au/last-post-service-31-july 

Current output:

  For details of the Last Post Service: https://www.shrine.org.au/last-post-service-31-july 

Expected output:

  For details of the Last Post Service: https://www.shrine.org.au/last-post-service-31-july 

Screenshot

Drupal 10.2.5

Drupal 10.1.7

no issue, and it looks good.

it also happens on the situation below

<h2>
    Another Heading 2
</h2>
<p>
    &nbsp;
</p>
<h3>
    Another Heading 3
</h3>

Drupal 10.2.5

Drupal 10.1.7

no issue, and it looks good.

I am looking for guidance or confirmation on whether this is an issue with the recent updates and if there is a planned fix for future releases. Any suggestions on alternative solutions or patches would also be greatly appreciated.

Thank you!

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Base 

Last updated 1 day ago

Created by

🇦🇺Australia yovince Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024