Lines Matching refs:text
171 function HTMLEncode( text ) argument
173 if ( !text )
176 text = text.replace( /&/g, '&' ) ;
177 text = text.replace( /</g, '<' ) ;
178 text = text.replace( />/g, '>' ) ;
180 return text ;
184 function HTMLDecode( text ) argument
186 if ( !text )
189 text = text.replace( />/g, '>' ) ;
190 text = text.replace( /</g, '<' ) ;
191 text = text.replace( /&/g, '&' ) ;
193 return text ;