KefirBB is a Java-library for text processing. Initially it was developed for BB2HTML translation. But flexible configuration allows to use it for others translations. For example XML2HTML or for HTML filtration.
<dependency>
<groupId>org.kefirsf</groupId>
<artifactId>kefirbb</artifactId>
<version>1.1</version>
</dependency>
TextProcessor processor = BBProcessorFactory.getInstance().create();
assert "<b>text</b>".equals(processor.process("[b]text[/b]"));
If you want to give me a beer just send some money to https://www.paypal.me/kefir