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

Introduce keepEmptyTags option #851

Closed
wants to merge 1 commit into from
Closed

Introduce keepEmptyTags option #851

wants to merge 1 commit into from

Conversation

dfreerksen
Copy link

This came from issue #703 where if the content contains only empty tags, the content gets completely removed. It currently assumes if there is no text, the tags are not wanted or necessary. This is not always the case.

This introduces a new option for keepEmptyTags. To stay consistent with current functionality, the default value is false. Setting the value to true, the content will not be reset to an empty string even when there is not text in the tags.

@Alex-D Alex-D mentioned this pull request Oct 12, 2018
@Alex-D
Copy link
Owner

Alex-D commented Oct 12, 2018

What about #861?

@Alex-D Alex-D closed this in 8453328 Nov 16, 2018
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.

2 participants