{"id":817,"date":"2025-04-04T03:09:20","date_gmt":"2025-04-03T18:09:20","guid":{"rendered":"https:\/\/deskplate.net\/blog\/?p=817"},"modified":"2025-04-04T03:10:26","modified_gmt":"2025-04-03T18:10:26","slug":"%e4%b8%8d%e6%ad%a3%e3%81%aahtml%e3%82%92%e3%83%91%e3%83%bc%e3%82%b9%e3%81%97%e3%82%88%e3%81%86%e3%81%a8%e3%81%97%e3%81%9f%e9%9a%9b%e3%81%ab%e7%99%ba%e7%94%9f%e3%81%99%e3%82%8b%e5%85%b8%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/817","title":{"rendered":"\u4e0d\u6b63\u306aHTML\u3092\u30d1\u30fc\u30b9\u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u5178\u578b\u7684\u306a\u30a8\u30e9\u30fc"},"content":{"rendered":"<pre>\r\nUncaught exception Fuel\\Core\\PhpErrorException: DOMDocument::loadHTML(): Tag header invalid in Entity, line: 2\r\n<\/pre>\n<p>DOMDocument::loadHTML() \u304c\u4e0d\u6b63\u306aHTML\u3092\u30d1\u30fc\u30b9\u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b\u767a\u751f\u3059\u308b\u5178\u578b\u7684\u306a\u30a8\u30e9\u30fc\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001<\/p>\n<header> \u30bf\u30b0\u306a\u3069\u3001HTML5\u306e\u30bf\u30b0\u304c\u53e4\u3044DOMDocument\u306e\u4ed5\u69d8\u3067\u8a8d\u8b58\u3055\u308c\u305a\u300cinvalid\uff08\u7121\u52b9\uff09\u300d\u3068\u898b\u306a\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<p>\u539f\u56e0\u306e\u53ef\u80fd\u6027<br \/>\n&#8211; HTML\u304c\u5b8c\u5168\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u306a\u3044<br \/>\nhtml, head, body \u304c\u306a\u3044\u3001\u3042\u308b\u3044\u306f\u58ca\u308c\u305fHTML\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>&#8211; \u53d6\u5f97\u3057\u305fHTML\u304cHTML\u3067\u306f\u306a\u3044<br \/>\n\u5b9f\u969b\u306b\u306fJSON\u3084\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\uff08403, 404, 500\u306a\u3069\uff09\u306a\u3069\u3001HTML\u3067\u306a\u3044\u3082\u306e\u304c $html \u306b\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>&#8211; HTML5\u30bf\u30b0\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u304c\u3001DOMDocument \u306fHTML5\u975e\u5bfe\u5fdc<br \/>\nDOMDocument \u306f\u53e4\u3044HTML4\u6e96\u62e0\u306e\u30d1\u30fc\u30b5\u3067\u3042\u308a\u3001header, section, article \u306a\u3069HTML5\u306e\u30bf\u30b0\u306b\u5b8c\u5168\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u5bfe\u5fdc<\/p>\n<pre>\r\nlibxml_use_internal_errors(true);\r\n$html2 = \\phpQuery::newDocument($html);\r\nlibxml_clear_errors();\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Uncaught exception F<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-817","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=817"}],"version-history":[{"count":2,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}