Fixed html<=>bbcode converter

cclaerhout

Well-known member
Licensed customer
I put it here but it seems you're working on it since the converter doesn't give the same results than yesterday.

Html:
01.webp
BbCode:
Code:
[B]dzad[COLOR=#e36c09]zadzad[/COLOR]zadz[/B]
[B] [/B]
[B]ad[COLOR=#c09100]zad[/COLOR]za[/B]
 
I don't know if it can help since you will probably use an iterator system instead of regex, but there are some testing patterns at the end of this file.
 
That particular example is now fixed, but I'm intentionally leaving this here as there's still some work to be done here.
 
I'm sure there will still be some odd cases, but I've made significant changes to some of this parsing today so hopefully it should be better/cleaner.
 
Back
Top Bottom