public static String html(String content) {
if(content==null) return "";
String html = content;
// html = html.replace( "'", "'");
html = html.replaceAll( "&", "&");
html = html.replace( "\"", """); //"
html = html.replace( "\t", " ");// 替换跳格
html = html.replace( " ", " ");// 替换空格
html = html.replace("<", "<");
html = html.replaceAll( ">", ">");
return html;
}
if(content==null) return "";
String html = content;
// html = html.replace( "'", "'");
html = html.replaceAll( "&", "&");
html = html.replace( "\"", """); //"
html = html.replace( "\t", " ");// 替换跳格
html = html.replace( " ", " ");// 替换空格
html = html.replace("<", "<");
html = html.replaceAll( ">", ">");
return html;
}
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow