在做语音报警中要让显示的信息换行,必须加上<br>,但是语音中也会读出来,要去掉, 假设要读的字符串是result
while (result.indexOf("<br>") >= 0) { result= result.toString().replace("<br>",""); }