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
When using this module, a tags are not correctly validated any more. If the module is disabled, <a href="https://www.google.de" asdsadds="asdasddsa">link</a> will be replaced with <a href="https://www.google.de">link</a> when the editor is toggled, because asdsadds is obviously not a valid attribute. However, when the module is enabled, the invalid attribute asdsadds will be kept and not stripped. This happens, because in the following line, many new allowed tags are added, which all allow all attributes:
No, it's not. It is used to allow a tags including any nested tags. Thanks for opening the issue, I'll need to refine the valid elements patterns. Not sure when I'll be able to get around to it yet.
When using this module,
a
tags are not correctly validated any more. If the module is disabled,<a href="https://www.google.de" asdsadds="asdasddsa">link</a>
will be replaced with<a href="https://www.google.de">link</a>
when the editor is toggled, becauseasdsadds
is obviously not a valid attribute. However, when the module is enabled, the invalid attributeasdsadds
will be kept and not stripped. This happens, because in the following line, many new allowed tags are added, which all allow all attributes:magento2-wysiwyg-svg/src/Plugin/AllowSvgInWysiwyg.php
Line 36 in 9c389b1
The following is added to
extended_valid_elements
:a[*]
says that all attributes on thea
tag should be allowed. This is probably not what you want to do, @Vinai?The text was updated successfully, but these errors were encountered: