<%
función (str)
str = reemplazar (str, "joder", "md")
str = reemplazar (str, "dum", "kao")
th = str
Función final
FunctionEndode (STR)
str = reemplazar (str, ">", ">")
str = reemplazar (str, "<", "<")
str = reemplazar (str, chr (32), "")
str = reemplazar (str, chr (13), "")
str = reemplazar (str, chr (10) y chr (10), "</p> <p>")
str = reemplazar (str, chr (10), "<br>")
codificar = str
Función final
%>
<%title = request.form ("title")
content = request.form ("content")%>
Título del artículo: <%= th (título)%> <hr>
Contenido del artículo: <%= encode (th (contenido))%>
TH (STR) es una función personalizada, y la función principal es muy simple: los caracteres de filtro. code (str) también es una función personalizada
La función principal es mostrar completamente la información transmitida.
CHR (10) representa la ruptura de línea, Chr (13) representa el retorno del carro y CHR (32) representa el espacio.
Función adicional: Mostrar código UBB.
Es decir, UBB.ASP contiene la función ubb ().
Mejorado cnbruce.asp
<!-#includeFile = "http://www.cnbruce.com/blog/ubb.asp"->
<%
función (str)
str = reemplazar (str, "joder", "md")
str = reemplazar (str, "dum", "kao")
th = str
Función final
%>