Skip to content

fix(NcRichContenteditable): Fix pasting XML and HTML content#3915

Merged
nickvergessen merged 1 commit intomasterfrom
bugfix/3264/fix-pasting-xml-content
Mar 23, 2023
Merged

fix(NcRichContenteditable): Fix pasting XML and HTML content#3915
nickvergessen merged 1 commit intomasterfrom
bugfix/3264/fix-pasting-xml-content

Conversation

@nickvergessen
Copy link
Contributor

@nickvergessen nickvergessen added bug Something isn't working 2. developing Work in progress feature: rich-contenteditable Related to the rich-contenteditable components labels Mar 23, 2023
@nickvergessen nickvergessen self-assigned this Mar 23, 2023
@nickvergessen nickvergessen marked this pull request as ready for review March 23, 2023 11:49
@nickvergessen nickvergessen added 3. to review Waiting for reviews papercut Annoying recurring issue with possibly simple fix. and removed 2. developing Work in progress labels Mar 23, 2023
@nickvergessen nickvergessen added this to the 7.8.3 milestone Mar 23, 2023
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/3264/fix-pasting-xml-content branch from ce4c9e9 to 35c79ee Compare March 23, 2023 14:11
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

document.createTextNode also allows to escape HTML characters, so there is no need to do it twice

Copy link
Contributor

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Seems safe to me too.

@nickvergessen nickvergessen merged commit 1dcc51d into master Mar 23, 2023
@nickvergessen nickvergessen deleted the bugfix/3264/fix-pasting-xml-content branch March 23, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components papercut Annoying recurring issue with possibly simple fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't paste XML into chats NcRichContentEditable can not handle HTML a like input

4 participants