Skip to content

User a better escaping mechanism for HTML attributes#6736

Merged
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
javiereguiluz:better_html_attr_escape
Jan 18, 2025
Merged

User a better escaping mechanism for HTML attributes#6736
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
javiereguiluz:better_html_attr_escape

Conversation

@javiereguiluz
Copy link
Collaborator

When the content of HTML attributes is enclosed with ", you can use html instead of html_attr to escape its contents. This improves performance. See https://twig.symfony.com/doc/3.x/filters/escape.html

@javiereguiluz javiereguiluz added this to the 4.x milestone Jan 18, 2025
@javiereguiluz javiereguiluz merged commit f847296 into EasyCorp:4.x Jan 18, 2025
12 checks passed
@javiereguiluz javiereguiluz deleted the better_html_attr_escape branch January 18, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant