¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > ±Û¾²±â ³»¿ëº¸±â

µî·ÏÀÏ : 2017-07-03 20:12 Á¶È¸¼ö : 52,656

2.2.1. ±Û¾²±â(Write_ok.asp)
(¶Ç´Â "''"''' µîµî,, ¸¹Àº ±âÈ£µµ ÇØ°áµË´Ï´Ù.) 
ÅÂ±× È¿°ú¸¦ ¾ø¾Ö°í ½Í´Ù¸é, ¾Æ·¡Ã³·³ replace ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ­ Ä¡¿Ï¸¦ ÇØ ÁÖ¸é µË´Ï´Ù.

title = replace(title,"&","&")
title = replace(title,"<","&lt;")
title = replace(title,">","&gt;")
title = Replace(Replace(title, "'", "''"), """", "&#34;")

¾Æ·¡ÀÇ Á¶°Ç¹®Àº tag º¯¼ö°¡ 1À̸é content¸¦ ű×È¿°ú¸¦ ÁÖ°í, ±×·¸Áö ¾ÊÀ¸¸é ű×È¿¸¦ ¾ø¾Ö´Â
¿¹¹®ÀÔ´Ï´Ù.

if tag="1" then
content = Replace(content, "'", "''")
else

content = replace(content,"&","&amp;")
content = replace(content,"<","&lt;")
content = replace(content,">","&gt;")
content = Replace(Replace(content, "'", "''"), """", "&#34;")
end if

2.2.2 ³»¿ëº¸±â(Content.asp)
Enter Å°¸¦ ÃÆÀ»¶§, ÁÙ ¹Ù²ÞÀ» À§Çؼ­´Â ¾Æ·¡Ã³·³ replace ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ­ ó¸®ÇØ ÁÝ´Ï´Ù.

content = replace(objRs("content"),chr(13) & chr(10),"<br>")
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.