Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 11
Registered: ‎10-06-2010
My Device: 9550
My Carrier: mtn
Accepted Solution

Strip html tags

I'm currently working on an app that has to post streams of news articles from a website.

Only problem is the news content contains some html tags.

was trying to use  regular expressions to locate and replace those tags with the empty string but can't find a way.

Already looked at the net.rim.device.api.util package...only has methods to match and they all return boolean values..

Isn't there a way to use regex to find and replace these tags..
Please would really appreciate your suggestions..


Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: Strip html tags

I don't know about how to find the tags with regex but with regards to regex on BlackBerry:


---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.