Skip to content

Never "dequote" attributes, always escape#3212

Merged
lubber-de merged 5 commits intofomantic:developfrom
mvorisek:safe_fixes
Mar 13, 2025
Merged

Never "dequote" attributes, always escape#3212
lubber-de merged 5 commits intofomantic:developfrom
mvorisek:safe_fixes

Conversation

@mvorisek
Copy link
Copy Markdown
Contributor

@mvorisek mvorisek commented Mar 13, 2025

extracted from #3205

We use here a trick that HTML attributes can be escaped the same way as HTML values - https://jsfiddle.net/45q9zL7j/, thus HTML attributes does not need a separate escape function.

Under normal usage this PR should imply no function change.

Copy link
Copy Markdown
Member

@lubber-de lubber-de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@lubber-de lubber-de merged commit 7cc48d0 into fomantic:develop Mar 13, 2025
8 checks passed
@lubber-de lubber-de added type/feat Any feature requests or improvements javascript labels Mar 13, 2025
@lubber-de lubber-de added this to the 2.10.0 milestone Mar 13, 2025
@lubber-de lubber-de added the state/awaiting-docs Pull requests which need doc changes/additions label Mar 13, 2025
@mvorisek mvorisek deleted the safe_fixes branch March 14, 2025 02:48
@lubber-de lubber-de added lang/javascript Anything involving JavaScript and removed javascript labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/javascript Anything involving JavaScript state/awaiting-docs Pull requests which need doc changes/additions type/feat Any feature requests or improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants