<%
Functionth (STR)
str = substituir (str, "foda", "md")
str = substituir (str, "dum", "kao")
th = str
Função final
FunctionEncode (STR)
str = substituir (str, ">", ">")
str = substituir (str, "<", "<")
str = substituir (str, chr (32), "")
str = substituir (str, chr (13), "")
str = substituir (str, chr (10) & ch (10), "</p> <p>")
str = substituir (str, chr (10), "<br>")
Encode = str
Função final
%>
<%title = request.form ("title")
Content = request.form ("Content")%>
Título do artigo: <%= th (título)%> <HR>
Conteúdo do artigo: <%= Encode (th (content))%>
O TH (STR) é uma função personalizada e a função principal é muito simples: os caracteres do filtro. Encode (STR) também é uma função personalizada
A principal função é exibir completamente as informações transmitidas.
Chr (10) representa quebra de linha, Chr (13) representa o retorno do transporte e o CHR (32) representa espaço.
Função adicional: Exiba o código UBB.
Isto é, ubb.asp contém a função ubb ().
CNBRUCE aprimorado.asp
<!-#incluirfile = "http://www.cnbruce.com/blog/ubb.asp"->
<%
Functionth (STR)
str = substituir (str, "foda", "md")
str = substituir (str, "dum", "kao")
th = str
Função final
%>