Re: Nested quotes depth restriction.
Reply #2 –
Doing it (properly) server side, I think, means having to do all the stuff the browser does to render the effect and the strip what is not necessary.
The second most appropriate way could be to loop over the bbcode, identify when inside a quote, keep track of how deep you are in the quoting (1st level/single quote, 2nd level nested quote, etc.) and strip anything above the desired level.
Another option that comes to my mind is, since we ship a markdown interpreter you can bbc -> html -> md -> strip nested quotes -> html -> bbc