public static String textXML(String xml) {
		if(xml == null) return "";
		String content = xml;
		content = content.replaceAll("<", "&lt;");
		content = content.replaceAll(">", "&gt;");
		content = content.replaceAll("\"", "&quot;");
		content = content.replaceAll("\n", "</br>");
		return content;
	}
public static String textXML(String xml) {
		if(xml == null) return "";
		String content = xml;
		content = content.replaceAll("<", "&lt;");
		content = content.replaceAll(">", "&gt;");
		content = content.replaceAll("\"", "&quot;");
		content = content.replaceAll("\n", "</br>");
		return content;
	}
public static String textXML ( String xml ) { if ( xml == null ) return "" ; String content = xml ; content = content . replaceAll ( "<" , "&lt;" ) ; content = content . replaceAll ( ">" , "&gt;" ) ; content = content . replaceAll ( "\"" , "&quot;" ) ; content = content . replaceAll ( "\n" , "</br>" ) ; return content ; }
xml内容特殊符号替换
@param xml xml字符串
@return 替换后的xml
xml内容特殊符号替换