{"id":1014,"date":"2010-01-11T10:09:54","date_gmt":"2010-01-11T10:09:54","guid":{"rendered":"http:\/\/www.mjtnet.com\/blog\/?p=1014"},"modified":"2010-01-11T10:10:33","modified_gmt":"2010-01-11T10:10:33","slug":"remove-tags-from-html-with-regex","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2010\/01\/11\/remove-tags-from-html-with-regex\/","title":{"rendered":"Remove Tags From HTML with RegEx"},"content":{"rendered":"<p>A quick and easy way to remove HTML tags from a string:<\/p>\n<pre name=\"code\" class=\"macroscript\">Let>Html=<P align=center><STRONG><FONT size=5>Hello World<\/FONT><\/STRONG><P><a here=\"test\">Test link<\/a>\r\n\r\nLet>pattern=<(.|\\n)*?>\r\nRegEx>pattern,Html,0,matches,numMatches,1,,plainText\r\n\r\nMessageModal>plainText<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A quick and easy way to remove HTML tags from a string: Let>Html=Hello WorldTest link Let>pattern= RegEx>pattern,Html,0,matches,numMatches,1,,plainText MessageModal>plainText<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1014"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":2,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1014\/revisions\/1016"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}