Àå°í ¼Òµ¶Á¦

Django ÅÛÇø´ ÇÊÅÍ »ç¿ëÀÚ°¡ Á¦Ãâ µÈ HTMLÀ» Áß´ÜÇϱâÀ§ÇÑ ÇÊÅÍ ÀÀ¿ë ÇÁ·Î±×·¥
Áö±Ý ´Ù¿î·Îµå

Àå°í ¼Òµ¶Á¦ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Other/Proprietary Li...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Calvin Spealman
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/ironfroggy/

Àå°í ¼Òµ¶Á¦ ű×


Àå°í ¼Òµ¶Á¦ ¼³¸í

Django-Sanitizer´Â Çã¿ëµÇÁö ¾ÊÀº ÅÂ±×¿Í ¼Ó¼º¸¸À» Çã¿ëÇÏ´Â Django ¾ÛÀÔ´Ï´Ù. ¼³Á¤ Dollowed_Tags´Â µ¿ÀÛÀ» ¹«½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¼³Á¤ÀÇ ±¸¹®Àº ¼±ÅÃÀûÀ¸·Î Äݷаú ű׿¡¼­ Çã¿ëµÇ´Â ¼Ó¼ºÀÇ ½°Ç¥·Î ±¸ºÐ µÈ ¼Ó¼º ¸ñ·ÏÀ» ¼±ÅÃÀûÀ¸·Î ¼öÇàÇÏ´Â ÅÂ±× ¸ñ·ÏÀÔ´Ï´Ù. ¿¹¸¦ µé¾î ¸µÅ© ¶Ç´Â ¸í¸í µÈ ¾ÞÄ¿ ÀΠű׸¦ Çã¿ëÇÏ´Â °Í, ±×·¯³ª onClick ¼Ó¼ºÀÇ Á¤ÀǸ¦ Çã¿ëÇÏÁö ¾Ê´Â °ÍÀº ¾Æ´Õ´Ï´Ù. allowed_tags = "a : href, name"ÅÛÇø´¿¡¼­ sanitizingÀº ½±½À´Ï´Ù. {% Load Sanitizer %} {{user_comment | AllowTags | Safe} {user_comment | AllowTags : "B i"| Safe}} Çã¿ëµÇÁö ¾Ê´Â ÅÂ±× ¶Ç´Â ¼Ó¼ºÀº °£´ÜÈ÷ Á¦°ÅµË´Ï´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö


Àå°í ¼Òµ¶Á¦ °ü·Ã ¼ÒÇÁÆ®¿þ¾î