Skip to content

Fix lossy HTML escape in all modules - #3231

Merged
lubber-de merged 10 commits into
fomantic:developfrom
mvorisek:always_encode_preservehtml_false
Mar 26, 2025
Merged

Fix lossy HTML escape in all modules#3231
lubber-de merged 10 commits into
fomantic:developfrom
mvorisek:always_encode_preservehtml_false

Conversation

@mvorisek

Copy link
Copy Markdown
Contributor

as discussed in #3205 (comment)

The first 2 commits fix #3224.

The remaining commits are relanding postponed 8590c21. I checked all escape( usages in each module. Text like & should be always encoded into & as the meaning is to encode the input and the input is never from innerHTML.

Comment thread src/definitions/modules/dropdown.js Fixed
Comment thread src/definitions/modules/embed.js Outdated
@mvorisek
mvorisek force-pushed the always_encode_preservehtml_false branch from 01e2a73 to d57df08 Compare March 26, 2025 21:25
Comment thread src/definitions/modules/dropdown.js Outdated
@mvorisek
mvorisek force-pushed the always_encode_preservehtml_false branch from d57df08 to 1407047 Compare March 26, 2025 21:38

@lubber-de lubber-de left a comment

Copy link
Copy Markdown
Member

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 ea33639 into fomantic:develop Mar 26, 2025
@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript labels Mar 26, 2025
@lubber-de lubber-de added this to the 2.10.0 milestone Mar 26, 2025
@mvorisek
mvorisek deleted the always_encode_preservehtml_false branch March 26, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants