I want to parse some strings which contains custom forum tags in them,like:
[url=https://play.google.com/store/apps/details?id=xxx]----sent from my Sony Ericsson LT28h,Android 4.2.1[/url]
and show this tag string in a textview to be a clickable link —-sent from my Sony Ericsson LT28h,Android 4.2.1
I tried the Html.fromhtml and use a custom taghandler, but it seems only support custom tags starts with “<” and ends “>”
Any suggestions?
one way is to write a custom handler for these, check for a sample code below, it may give you a hint (note this code will return you inner value of [url]…[/url] tags you need to create one more iteration for [url=….] tag using same logic to get url’s value):