XML::LibXML::parse_html_string 㧠HTML ã®ä¸é¨ããã¨ãã°ããã°è¨äºã®æ¬æã®ã¿ã¨ããããã¼ã¹ãããã¨ãã¦ç¡é§ã«è¦æ¦ãã¦ãã¾ã£ãã®ã§ã¡ã¢ã 以ä¸ã®ãããªãDOCTYPE 宣è¨ããªããã° html/body è¦ç´ ããªããã©ãã¡ããã¨ï¼ï¼ï¼HTMLã®ä¸é¨ã§ã¯ãããã®ã XML::LibXML ã§ãã¼ã¹ããã«ãã£ããã¨åºåãããã #!/usr/bin/perl use strict; use warnings; use XML::LibXML; my $html =<<HTML; <div class="entry"> <p>test!!</p> </div> HTML my $parser = XML::LibXML->new; my $doc = $parser->parse_html_string($html); print $doc->toStringH
{{#tags}}- {{label}}
{{/tags}}