Skip to content

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