-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Filter mangles HTML when attribute value contains a special character #39193
Comments
This appears to only occur when the special characters are in the href attribute value. For example, the following link, where the special caharacters are in the title attribute value, the Text Filter does not affect the HTML: <a href="https://www.ikea.com/gb/en/p/birkelanga-tray-patterned-multicolour-grey-green-40537947" title="BIRKELÅNGA">BIRKELÅNGA</a> Further investigation shows that when a special character is in the src attribute value of an |
I can confirm this, only with my system the |
This appears to be fixed in this PR - joomla-framework/filter#50 |
Yes i have successfully tested joomla-framework/filter/pull/50 - closing this issue then |
Hi, |
Steps to reproduce the issue
Expected result
The article content should remain intact as the HTML is valid.
Actual result
The content becomes
once filtered and saved. The first < and > from the
<a>
tag are removed and the last " of the attribute value is encoded.System information (as much as possible)
Joomla 4.2.4
Browser (Any)
PHP 8.0.14
Additional comments
When the Text Filter Filter Type is set to No Filtering, this issue does not occur, and the content is saved correctly.
The text was updated successfully, but these errors were encountered: