You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have found occurrences of invalid HTML in redactor fields such as this example:
<p>Some example paragraph text <a href="url/something.pdf#asset:5902:url"></a><a href="url/something.pdf#asset:5904:url"></a><a href="url/something.pdf#asset:170586:url"></a><a href="url/something.pdf#asset:192253:url">some text linked</a>.</p>
There were several empty anchor tags without a label when viewing the HTML source for the redactor field data.
It would appear that the original link has changed one or more times but the original linked href value changing left the original anchor without a label in place, while adding a correct link with the label set.
The cleanup option for empty tags only matches on <a></a> it doesn't match the case for something like <a href="url"></a>.
How the situation occurred with empty links is an interesting one, but could the cleanup regex be expanded to cover this scenario potentially?
Steps to reproduce
Add an empty link with a href but no label e.g. <a href="https://www.google.co.uk"></a>
Observe this will be present in the redactor field but without any indication of it's presence in the CMS when saving.
Additional info
Craft version: 3.7.56
PHP version: 8.0
Database driver & version: MySQL
Plugins & versions: Redactor 2.10.10
The text was updated successfully, but these errors were encountered:
Description
We have found occurrences of invalid HTML in redactor fields such as this example:
There were several empty anchor tags without a label when viewing the HTML source for the redactor field data.
It would appear that the original link has changed one or more times but the original linked href value changing left the original anchor without a label in place, while adding a correct link with the label set.
The cleanup option for empty tags only matches on
<a></a>
it doesn't match the case for something like<a href="url"></a>
.How the situation occurred with empty links is an interesting one, but could the cleanup regex be expanded to cover this scenario potentially?
Steps to reproduce
<a href="https://www.google.co.uk"></a>
Additional info
The text was updated successfully, but these errors were encountered: