BB code filter?

Put your problem here if it does not fit any of the other categories.

BB code filter?

Postby stece » Mon May 31, 2010 9:11 am

Dear Android fanatics

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 = ....;
message.replace("[b]", "");

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


User avatar
Experienced Developer
Experienced Developer
Posts: 62
Joined: Wed Apr 21, 2010 10:50 am
Location: Belgium


Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 5 guests