ASP如何输出HTML源码

2024-12-03 02:33:41
推荐回答(5个)
回答1:

最简单的方式使用 Server.Htmlencode

b="qq"
Response.write Server.Htmlencode(b)

回答2:

b="qq"
Response.write Server.Htmlencode(b)

回答3:

b = "

<font color=red>qq</font>"
response.write b

回答4:

<%
b="qq"
b=replace(b,"<","<")
response.write b
%>

回答5:

response.write ""qq""