package com.ushopkeeper.common.utils;
/**
* 转译html语言
* @author Administrator
*
*/
public class StringFromHtmlUtil {
public static String parseStringFromHtmlCode(String tag){
tag=tag.replaceAll(" ", " ");//空格下面的方法不好使
tag=org.apache.commons.lang.StringEscapeUtils.unescapeHtml(tag);
return tag;
}
public static void main(String[] args) {
System.out.println(parseStringFromHtmlCode("大大缩短啊 是长发随风"));
}
}