package com.util; /** * * HTML·ûºÅ¹ýÂËÀà * @author Administrator * */ public final class Filter { public Filter(){ } public static String escapeHTMLTags( String input ) { if( input == null || input.length() == 0 ) { return input; } StringBuffer buf = new StringBuffer(); char ch = ' '; for( int i=0; i' ) { buf.append( ">" ); } else if(ch=='&'){ buf.append("&"); } else { buf.append( ch ); } } return buf.toString(); } }