I'm looking for a BBCode library for Delphi, that can translate BBCode into HTML. And it would be nice to have an actual parser that understands the state of the input and is able to detect errors, not something cheap along the lines of:
text := StringReplace(text, '[i]', '<i>', [rfReplaceAll]);
text := StringReplace(text, '[/i]', '</i>', [rfReplaceAll]);
text := StringReplace(text, '[b]', '<b>', [rfReplaceAll]);
text := StringReplace(text, '[/b]', '</b>', [rfReplaceAll]);
...
Does any such library exist? I've run a few Google searches but I haven't found one yet...