- π¨π¦Canada jibran Toronto, Canada
RE #65: It is a very well-made point so thank you for that.
I feel like it shouldn't be
\Drupal\Component\Utility\Xss::attributes()
responsibility. If it can happen after token replacement usingtoken_filter
then I think it should be dealt with intoken_filter
. Once the token is replaced usingtoken_filter
thensrc
andhref
should be passed to\Drupal\Component\Utility\UrlHelper::filterBadProtocol()
. - π¨π¦Canada mandclu
I ran into this issue today, and had to implement a messy workaround. It would great if this could get more attention.
- π³π±Netherlands richard hoogstad
Hello Drupal Community
This merge request addresses an existing issue with tokens in attributes. Hereβs a brief overview of the changes made:- Allows Tokens for src and html Attributes: This will enhance flexibility in how tokens are utilized within these attributes.
- Added Support for href Attribute: In addition to the above, I've added support for tokens within the href attribute..
This implementation is built upon two patches provided by @danflanagan8.
I welcome any feedback or suggestions from the community, as I strive to ensure that this merge request meets our shared standards and needs.
Thank you for your consideration!
Best regards,
Richard Hoogstad - π³π±Netherlands watergate
watergate β changed the visibility of the branch 11.x to hidden.
- Merge request !10819Issue #2944173 by jhodgdon: Allow tokens for href, src and html attributes β (Open) created by richard hoogstad