Extension talk:BBCodeSyntax/Archive 1

To Do...
--NekoOuterverse 14:24, 2 July 2008 (UTC)
 * Add URL support.
 * Clean up SPAN tags.
 * Figure out implementation of IMG tag.
 * Get HTML sizes working for FONT.
 * Change GREEDY matches to LAZY matches. See below.
 * Actually get v0.2 ready for posting.

[v0.1] Nested BBCode Parsing Bug
Identical tags that are nested in other tags are not parsed.
 * I actually found a solution to this and will be issuing an update later on.
 * Basically the fix involves using LAZY matches instead of GREEDY ones.

--NekoOuterverse 15:25, 11 February 2008 (UTC)

Other BBCodes from HTML
Maybe add abbr, pre, table(s) similar tags to v0.3? --NekoOuterverse 14:24, 2 July 2008 (UTC)

This looks quite slow
This could be done using 5-6 preg_replaces and 2 str_replaces. I'll post a code snippet soon. Pawelabrams (mail me on gmail, same nick ;p ), 86.63.134.78 21:02, 24 March 2009 (UTC)


 * Yup, I knew I had something like that somewhere... Re-made one, currently 5 tags supported: Pawelabrams, 86.63.134.78 21:02, 24 March 2009 (UTC)

Do not trust the user
Script doesn't verify if the values are correct or not. In the BGCOLOR code you just insert in the style attribute one could insert anything.. like [bgcolor=" >alert(1); red]background[/bgcolor] It's not that hard to add code to check for some color constants.