ååãé·ãé¢æ° htmlspecialchars() ã h() ã¨æ¸ããããã«ããã¨ä¾¿å©ãã¨ãã話ãããã PHP: htmlspecialchars - Manual htmlspecialcharsé¢æ°ãç°¡åã«æ±ããããã«ãã 第1å CakePHPã使ããããªã5ã¤ã®ç¹å¾´ï¼CakePHPã§é«éWebã¢ããªéçºï½gihyo.jp ⦠æè¡è©è«ç¤¾ htmlspecialchars() ãªãã¦é·ãååã¯çµ¶å¯¾å¿ããããENT_QUOTESã ã®UTF-8ã ã®ãæ¸ãå¿ããã«æ±ºã¾ã£ã¦ããã h() 㯠CakePHP ã§ã使ããã¦ãã¦ãããã¨æããããã¨æããã ãã©ãããã¡ãã£ã¨ãããã <?php /** æ¹ååã®ã¨ã¹ã±ã¼ãé¢æ° */ function h($str) { return htmlspecialchars($str, ENT_QUOTES, 'UTF-8') } ãã®ããã«ã¨ã¹ã±
{{#tags}}- {{label}}
{{/tags}}