jBBCode icon indicating copy to clipboard operation
jBBCode copied to clipboard

Parser does not recognize tag if bbcode is used in option

Open Rall3n opened this issue 9 years ago • 1 comments

As said above:

I´m trying to use a "quote" CodeDefinition that can be used with or without option! Both work, but when I want to use other jBBCode tags inside the option parameter of the quote tag, the first tag in the option loses its opening bracket and the parser can`t recognize the quote tag itself because of it!

E.G: [quote=[b]test[/b]]testing[/quote]

Output: [quote=b]test[/b]]test123[/quote]

I tried using quotation in the option, but it was the same result!

Anyone got an idea how I could fix/make a workaround for this?

Rall3n avatar Jun 10 '16 09:06 Rall3n

Don't do that. You shouldn't markup the option parameter as you wouldn't markup it in HTML.

E.g. this isn't useful too: <blockquote cite="<b>parameter</b>">content</blockquote>

The option parameter shouldn't contain content. It should only contain metadata about the "real content".

Art4 avatar Jun 10 '16 13:06 Art4