Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only escape HTML if invalid #3399

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

Arukuen
Copy link
Contributor

@Arukuen Arukuen commented Jan 22, 2025

fixes #3392

Copy link

🤖 Pull request artifacts

file commit
pr3399-stackable-3399-merge.zip be84a56

github-actions bot added a commit that referenced this pull request Jan 22, 2025
import { escapeHTML } from '@wordpress/escape-html'

export const escapeHTMLIfInvalid = html => {
const parser = new DOMParser()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any performance issues because we're doing this every keypress?

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.

Text Formatting issue - When editing text in the side editor, text format breaks
2 participants