Recently I ran some tests while reparsing about ~500K posts from an existing forum. I looked at the error log from the s9e\TextFormatter parser using this low-tech extension that I don't recommend to anyone.
I found that a few posts used something like this:
[size=50][quote]...[/quote][/size]
. The size
BBCode uses a <span>
so it doesn't produce valid HTML. The default settings in s9e\TextFormatter prevent invalid HTML from being generated, and in this case they prevented the quote from being applied.I don't think that's the best way to handle this invalid markup. I have updated the library's default settings to bring it closer to how HTML5 handles that kind of invalid markup. From now on, the following code:
Code: Select all
[size=50][quote]...[/quote][/size]
Code: Select all
[size=50][/size][quote][size=50]...[/size][/quote][size=50][/size]