Fixed html<=>bbcode converter

cclaerhout

Well-known member
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.png
BbCode:
Code:
[B]dzad[COLOR=#e36c09]zadzad[/COLOR]zadz[/B]
[B] [/B]
[B]ad[COLOR=#c09100]zad[/COLOR]za[/B]
 

cclaerhout

Well-known member
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.
 

Mike

XenForo developer
Staff member
That particular example is now fixed, but I'm intentionally leaving this here as there's still some work to be done here.
 

Mike

XenForo developer
Staff member
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.
 
Top