{"id":1089,"date":"2017-03-23T17:08:02","date_gmt":"2017-03-23T09:08:02","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1089"},"modified":"2021-11-15T16:17:23","modified_gmt":"2021-11-15T08:17:23","slug":"dede%e5%90%8e%e5%8f%b0%e7%bc%96%e8%be%91%e5%99%a8div%e8%87%aa%e5%8a%a8%e8%bd%acp%e6%a0%87%e7%ad%be%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1089.html","title":{"rendered":"DEDE\u540e\u53f0\u7f16\u8f91\u5668DIV\u81ea\u52a8\u8f6cP\u6807\u7b7e\u7684\u65b9\u6cd5"},"content":{"rendered":"

\u4ece\u8bb0\u4e8b\u672c\u91cc\u590d\u5236\u7684\u6587\u5b57\u3002\u653e\u5230\u7f16\u8f91\u5668\u53d1\u5e03\u540e\u3002\u6bb5\u843d\u4f1a\u81ea\u52a8\u52a0\u4e0aDIV\u3002\u4e0b\u9762\u65b9\u6cd5\u5c31\u662f\u53d1\u5e03\u6587\u7ae0\u65f6\uff0c\u81ea\u52a8\u628aDIV\u8f6c\u6210p\u6807\u7b7e\u3002<\/p>\n

\u6253\u5f00\/dede\/inc\/inc_archives_functions.php<\/p>\n

\u641c\u7d22\uff1a<\/p>\n

function AnalyseHtmlBody($body,&$description,&$litpic,&$keywords,$dtype='')\r\n{<\/code><\/pre>\n

\u5927\u7ea6\u5728635\u884c<\/p>\n

\u5728\u8fd9\u4e0b\u9762\u6dfb\u52a0\uff1a<\/p>\n

$body = str_replace(\"div\",\"p\",$body); echo $str.\"\\n\";<\/code><\/pre>\n

\u6dfb\u52a0\u540e\u5982\u4e0b\u56fe<\/p>\n

\"\"<\/a><\/p>\n

\u4fdd\u5b58\u3002\u53d1\u5e03\u4e00\u7bc7\u6587\u7ae0\u8bd5\u8bd5\u3002<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ece\u8bb0\u4e8b\u672c\u91cc\u590d\u5236\u7684\u6587\u5b57\u3002\u653e\u5230\u7f16\u8f91\u5668\u53d1\u5e03\u540e\u3002\u6bb5\u843d\u4f1a\u81ea\u52a8\u52a0\u4e0aDIV\u3002\u4e0b\u9762\u65b9\u6cd5\u5c31\u662f\u53d1\u5e03\u6587\u7ae0\u65f6\uff0c\u81ea\u52a8\u628aDIV\u8f6c\u6210p\u6807\u7b7e\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1530],"class_list":["post-1089","post","type-post","status-publish","format-standard","hentry","category-web","tag-divp"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1089"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1089\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}