bbcode icon indicating copy to clipboard operation
bbcode copied to clipboard

Nested bbcode tags

Open hansgv opened this issue 6 years ago • 3 comments

Do nested bbcode tags work? Like so:

[quote][quote]He said[/quote]she said[/quote]

hansgv avatar Apr 30 '18 06:04 hansgv

Hello,

yes:

<blockquote><blockquote>He said</blockquote>she said</blockquote>

Plus:

[quote][b]He said[/b]she said

=>

<blockquote><strong>He said</strong>she said</blockquote>

Missing closing tags will be added. However, this is a simple approach that does not always create great results:

[quote][b]He said she said[/quote]

We would expect:

<blockquote><strong>He said she said</strong></blockquote>

But what we get is:

<blockquote><strong>He said she said</blockquote></strong>

chriskonnertz avatar Apr 30 '18 09:04 chriskonnertz

Awesome! How about [quote date='needs-to-be-parsed']Something irrelevant[/quote]

hansgv avatar Apr 30 '18 12:04 hansgv

I believe adding named attributes is not something that BBCode supports... So no, currently that is not possible.

chriskonnertz avatar May 01 '18 10:05 chriskonnertz