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

Force balance tags in news #82

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

Force balance tags in news #82

wants to merge 1 commit into from

Conversation

tomjn
Copy link
Contributor

@tomjn tomjn commented May 30, 2022

Fixes an issue that causes nested news items when BBCode isn't parsed properly and HTML tags are opened but not closed.

The force_balance_tags function is derived from WordPress which itself uses a fork. The alternative is a DOMDocument, but this avoids encoding issues and has been battle hardened by running on hundreds of millions of sites for 19 years

Fixes an issue that causes nested news items when BBCode isn't parsed properly and HTML tags are opened but not closed.

The force_balance_tags function is derived from WordPress which itself uses a fork. The alternative is a DOMDocument, but this avoids encoding issues and has been battle hardened by running on hundreds of millions of sites for 19 years
@abma
Copy link
Contributor

abma commented Jun 2, 2022

shouldn't the bbcode parser be fixed?

@tomjn
Copy link
Contributor Author

tomjn commented Jun 2, 2022 via email

@abma
Copy link
Contributor

abma commented Jun 2, 2022

ok. i guess i'll try

https://github.com/genert/bbcode or
https://github.com/jbowens/jBBCode

then: this project didn't exist the last time i searched for a bbcode parser.

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