{"id":327,"date":"2009-05-15T16:12:04","date_gmt":"2009-05-15T16:12:04","guid":{"rendered":"http:\/\/www.phpmind.com\/blog\/?p=327"},"modified":"2010-07-17T01:35:45","modified_gmt":"2010-07-17T01:35:45","slug":"how-to-remove-html-tags-from-string","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2009\/05\/how-to-remove-html-tags-from-string\/","title":{"rendered":"How to remove HTML Tags from string?"},"content":{"rendered":"<p>If your strings have image code, any html code or DIV code you can easily remove using this code. <\/p>\n<pre lang=\"php\">\r\n<?Php\r\n$str = preg_replace(\"\/<.*?>\/\", \"\", $str);\r\n?>\r\n<\/pre>\n<p>Hope this little code will be useful for you. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your strings have image code, any html code or DIV code you can easily remove using this code. Hope this little code will be useful for you.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-easy-php"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":15,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}