ASP usage function '########### The following is a common function ###########' text processing 1 effect: remove the front and rear spaces, perform HTML code compilation, and replace it back Car Ranking 'is used to process ordinary text, generally used to write database text, function formattext (text) text = trim (text) text = server.htmlencode (text) text = replace (text, chr (13), "" Text = Replace (Text, Chr (10), "
") FormatText = Textend Function
'Text Treatment 2 Effect: Replace the wrap Enter of the text area. 'Is generally used to display a text function formattextchr (text) text = replace (text, chr (13), "") text = replace (text, chr (10), "
") FormatTextChr = textend function
'Text Processing 3 Effect: Remove the front and rear spaces, replace single quotes and space' are generally used for username verification, prevent SQL vulnerability attack, ensure safe Function FormattextSecure (TEXT) FormatTextSecure = Replace (TRIM (TEXT), "'", "" ) End function