ä¹ ãã¶ãã®phpã¨ã³ããªã§ããtidyã使ã£ã¦ã¿ããã¨æã£ã¦ããµã³ãã«ãæ¸ãã¾ãããtidyã®ããè³æããããä¸ã«ãªãã®ã§ãããã©ãªãããåããªãã§ããï¼ [phpcode]/** * HTMLã®ã¿ã¤ãã«ãåå¾ãã */ function getTitle($input, $is_file = false, $encoding = âutf8â) { // tidyãªãã¸ã§ã¯ãã®ä½æ $tidy = new tidy(); // htmlã®èªã¿è¾¼ã¿ if ($is_file) { $tidy->parseFile($input, array(), $encoding); } else { $tidy->parseString($input, array(), $encoding); } // æ´å½¢ $tidy->cleanRepair(); // ã¿ã°ã®ä¸èº«ãåå¾ $headNode =
{{#tags}}- {{label}}
{{/tags}}