ACTIVE SERVER PAGE > ±Û¾²±â ³»¿ëº¸±â µî·ÏÀÏ : 2017-07-03 20:12 Á¶È¸¼ö : 52,6562.2.1. ±Û¾²±â(Write_ok.asp)
(¶Ç´Â "''"''' µîµî,, ¸¹Àº ±âÈ£µµ ÇØ°áµË´Ï´Ù.) ÅÂ±× È¿°ú¸¦ ¾ø¾Ö°í ½Í´Ù¸é, ¾Æ·¡Ã³·³ replace ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ Ä¡¿Ï¸¦ ÇØ ÁÖ¸é µË´Ï´Ù. title = replace(title,"&","&") title = replace(title,"<","<") title = replace(title,">",">") title = Replace(Replace(title, "'", "''"), """", """) ¾Æ·¡ÀÇ Á¶°Ç¹®Àº tag º¯¼ö°¡ 1À̸é content¸¦ ű×È¿°ú¸¦ ÁÖ°í, ±×·¸Áö ¾ÊÀ¸¸é ű×È¿¸¦ ¾ø¾Ö´Â ¿¹¹®ÀÔ´Ï´Ù. if tag="1" then content = Replace(content, "'", "''") else content = replace(content,"&","&") content = replace(content,"<","<") content = replace(content,">",">") content = Replace(Replace(content, "'", "''"), """", """) end if 2.2.2 ³»¿ëº¸±â(Content.asp) Enter Å°¸¦ ÃÆÀ»¶§, ÁÙ ¹Ù²ÞÀ» À§Çؼ´Â ¾Æ·¡Ã³·³ replace ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ ó¸®ÇØ ÁÝ´Ï´Ù. content = replace(objRs("content"),chr(13) & chr(10),"<br>")
|