问题
I tried to make application RSS news, and it can give detail news to user.
When I go to detail, the body text is show the html tag.
This is picture of my application:
I don't want to show html tags.
This is my code to show detail page:
private void detailScreen(News news){
Form form = new Form(news.getTitle());
StringItem detail = new StringItem("", news.getBody().toString());
mBackCommand = new Command("Back", Command.BACK, 0);
form.append(detail);
form.addCommand(mBackCommand);
form.setCommandListener(this);
//Canvas c = new MyCanvas(this, news);
mDisplay.setCurrent(form);
}
Please can someone tell me what's I'm doing wrong here?
来源:https://stackoverflow.com/questions/9715597/handle-text-html-in-j2me