I'm making a Android application which should show messages, events, etc from a website. But the messages from this website contain BB codes such as [b] [i]
These codes are stored in the database along with the message.
Now I need to filter theses codes out of the message before I can show them.
For codes like [b] there is no problem I just do something like
- Code: Select all
String message = ....;
but with stuff like [color=#FF0000] or images, these codes are dynamic and a bit harder to filter out.
I was wondering if someone knows an existing Java script of code snippet to filter these BB codes out