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 edge case for tags containing only whitespace. #99

Merged
merged 2 commits into from
May 18, 2016

Conversation

bluehaoran
Copy link
Contributor

A tag just containing spaces (or non-breaking spaces) would end up as ** or **** which would produce incorrect rendering.

The following is nonsensical, but often produced by WYSIWYG HTML editors:
<b>&nbsp;</b>

This fix prevents this being produced:
****

Or a runaway ** bold tag.

As per previous comment, a tag just containing spaces (or non-breaking spaces) would end up as ** or **** which would produce incorrect rendering.
@colinodell colinodell merged commit 3b64e5f into thephpleague:master May 18, 2016
@colinodell
Copy link
Member

Thank you for the contribution!

@bluehaoran bluehaoran deleted the patch-1 branch May 19, 2016 01:23
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