当前位置: 技术问答>java相关
怎样将“<”类的符号转换成特殊字符如“..%”之类的东东?谢谢
来源: 互联网 发布时间:2015-02-05
本文导语: | public static String fixHTML(String rString) { int lIndex = 0; char lChar ; StringBuffer lStrbuff; if (rString == null) return ""; lStrbuff = ne...
|
public static String fixHTML(String rString) {
int lIndex = 0;
char lChar ;
StringBuffer lStrbuff;
if (rString == null) return "";
lStrbuff = new StringBuffer(rString);
while (lIndex
int lIndex = 0;
char lChar ;
StringBuffer lStrbuff;
if (rString == null) return "";
lStrbuff = new StringBuffer(rString);
while (lIndex