Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - BB code filter?

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

Thx

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

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests