Function ÇÔ¼öÀ̸§ ÇÔ¼ö³»¿ë End Function
<%
Function ConvertChar(strValue) strValue
= Replace(strValue, "<", "½ÃÀÛ") strValue
= Replace(strValue, ">", "Á¾·á") ConvertChar=strValue
End Function
%>
<%
name="<[Àá¿Â´Ù]>" name=ConvertChar(name) Response.Write
name
%>
Ãâ·Â°á°ú ½ÃÀÛ[Àá¿Â´Ù]Á¾·á
À§ ÇÔ¼ö´Â ConvertChar¶õ À̸§À¸·Î ¹®ÀÚ¿ÀÇ <, > ºÎºÐÀ» °¢°¢ ½ÃÀÛ°ú Á¾·á¶õ
¸»·Î º¯È¯ÇÏ´Â ReplaceÇÔ¼ö¸¦ ÀÌ¿ëÇØ Á¤Àdz»·Á µÎ¾ú´Ù. ÀÌÈÄ name
º¯¼öÀÇ ConvertCharÇÔ¼ö¸¦ Àû¿ë½ÃÄÑ Ãâ·ÂÇÏ°Ô ÇÑ ³»¿ëÀÌ´Ù. |