Skip to content

Fix parser to take account of parser.optionsHtml.keepEmptyTextNodes option#6571

Merged
artf merged 2 commits intoGrapesJS:devfrom
nanto:options-html-keep-empty-text-nodes
Jul 24, 2025
Merged

Fix parser to take account of parser.optionsHtml.keepEmptyTextNodes option#6571
artf merged 2 commits intoGrapesJS:devfrom
nanto:options-html-keep-empty-text-nodes

Conversation

@nanto
Copy link
Contributor

@nanto nanto commented Jul 20, 2025

According to type definition, parser.optionsHtml option has keepEmptyTextNodes property but setting the property has no effect.

This pull request makes HTML parser to take account of parser.optionsHtml.keepEmptyTextNodes option.

Fix #6570

Copy link
Member

@artf artf left a comment

Choose a reason for hiding this comment

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

LGTM 👍 thanks @nanto

@artf artf merged commit a94cf25 into GrapesJS:dev Jul 24, 2025
3 checks passed
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.

BUG: parser ignores parser.optionsHtml.keepEmptyTextNodes option

2 participants