Trustmaster |
|
---|---|
I see the point. Obviously there should be a lower level API functions like sed_bbcode_add() and sed_bbcode_remove(). But I was talking of parser logic, not data. For example, a parser that will validate WYSIWYG HTML or add Wiki syntax support.
But, of course, if we could put all the parsers in one powerful parser, I would be all for it. The problem I encountered with parser_v2 is that those 2 arrays for str_replace() and preg_replace() (yeah, forget eregi, it's much slower) are not enough and for some sophisticated parsing you need preg_replace_callback() and custom functions. At that, some parser functions conflict with each other (e.g. nl2br). I can't say I'm all for many parser mods, but are you sure it is possible to have superior one? May the Source be with you!
|