我正在从我的java Web应用程序向Android和BB最终用户发送短信。 此消息包含一些HTML标记,如锚标记,粗体标记等。同样在移动端显示。 这是我必须编码的东西还是应该在移动设备上完成? 我是这个短信实施的新手。 有人可以帮助我吗?
提前致谢。
I am sending an sms from my java web application to Android and BB end user. This message has some HTML tags like anchor tag, bold tag etc. The same is getting displayed in the mobile end. Is it something I have to do encode or should it be done in mobile's end? I am new to this SMS implemenation. Can someone pls help me?
Thanks in advance.
最满意答案
我想你想要从你的应用程序编码而不是在移动端?
然后编码html。 我建议最好的html编码器是StringEscapeUtils
StringEscapeUtils.escapeHtml(htmlString)如果你想从移动端做到这一点,那么使用Html.fromHtml(String source)
I guess you want to encode from your application and not in the mobile end ?
Then encode the html. I would suggest the best html encoder is StringEscapeUtils
StringEscapeUtils.escapeHtml(htmlString)And if you want to do it from the mobile end then use Html.fromHtml (String source)
更多推荐
end,HTML,BB,电脑培训,计算机培训,IT培训"/> <meta name="description"
发布评论