Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Better BBCode Parser
I've just started work on a lib for parsing BBCode, but with some extra and improved features:
I don't have any more examples right now, but once its done I'll start working on the Add-on.
- Corrects any nesting issues, no more validation errors due to BBCode.
- Lets custom BBCodes be written by supplying formats and matches:
- Format: You specify exactly what you want the output to be.
- Matches: Let you test content based on a regular expression.
!attribute{isuri¬email}{<a href="#attribute">#text</a>}!attribute{noturi|isemail}{#text}You can see a similar idea which parses HTML here.
I don't have any more examples right now, but once its done I'll start working on the Add-on.
0
This discussion has been closed.
Comments
If you have a good patch that fixes these things, I'd be glad to include it in the main extension, but it seems kind of silly to go to the work of writing your own.