如何使用Codename One从字符串中删除所有html标记。见下面的样本弹簧。
<p><b>Introduction to the Course</b><br /></p><p>Dear learner, welcome to the <span style=\"font-size:11pt;font-family:'Franklin Gothic Book', 'sans-serif';\" lang=\"en-gb\" xml:lang=\"en-gb\">Effective Management and Control of Asthma training programme.</span> The<span style=\"font-size:11pt;font-family:'Franklin Gothic Book', 'sans-serif';\" lang=\"en-gb\" xml:lang=\"en-gb\"> training programme</span> </p><p>Happy learning!<br /></p>
&#13;
答案 0 :(得分:1)
您可以为标记构建一个合适的com.codename1.util.regex.RE
对象和subst
一个空白字符串。