milesj / decoda

A lightweight lexical string parser for BBCode styled markup.
MIT License
196 stars 52 forks source link

Tags with :data in them #73

Closed sdousley closed 10 years ago

sdousley commented 10 years ago

I'm not so sure that this is a bug, or more of a feature request.

I have a phpBB Forum, which when you use bbcode, will insert extra code within the tag so that it knows where that tag ends for example:

[b:fd3fds]2 more[/b:fd3fds]

When this gets passed through parse() it doesn't recognise this. Is it possible at all to do this with Decoda?

milesj commented 10 years ago

No sorry, it's not possible. The only option would be to remove the :data with regex before passing it to Decoda.