public static String filterForHTMLValue(String _sContent) {
		if (_sContent == null) {
			return "";
		}

		// _sContent = replaceStr(_sContent,"</script>","<//script>");
		// _sContent = replaceStr(_sContent,"</SCRIPT>","<//SCRIPT>");

		char[] srcBuff = _sContent.toCharArray();
		int nLen = srcBuff.length;
		if (nLen == 0) {
			return "";
		}

		StringBuffer retBuff = new StringBuffer((int) (nLen * 1.8));

		for (int i = 0; i < nLen; i++) {
			char cTemp = srcBuff[i];
			switch (cTemp) {
			case '&': // 转化：& -->&amp;why: 2002-3-19
				// caohui@0515
				// 处理unicode代码
				if (i + 1 < nLen) {
					cTemp = srcBuff[i + 1];
					if (cTemp == '#') {
						retBuff.append("&");
					} else {
						retBuff.append("&amp;");
					}
				} else {
					retBuff.append("&amp;");
				}
				break;
			case '<': // 转化：< --> &lt;
				retBuff.append("&lt;");
				break;
			case '>': // 转化：> --> &gt;
				retBuff.append("&gt;");
				break;
			case '\"': // 转化：" --> &quot;
				retBuff.append("&quot;");
				break;
			default:
				retBuff.append(cTemp);
			}// case
		}// end for

		return retBuff.toString();
	}