asp classic - Escape asp/vbscript script tags -
how escape asp directive output
so need print page string asp tags
<% response.write "<%=count%>" %> but error
microsoft vbscript compilation error '800a0409' unterminated string constant
so how print script tags?
so need <%=count%> not count
there way instead of ?
<% response.write "<" & "%=count%" & ">" %>
you need make sure html encode before attempting use response.write() this;
here use html encoded value of % % stop vbscript run-time spitting it's dummy (but can use < < , > > has been suggested).
<% response.write "<%=count%>" %> outputs:
<%=count%>
Comments
Post a Comment