{"id":11491272,"date":"2019-05-03T02:35:10","date_gmt":"2019-05-03T02:35:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-when-using-the-strip-html-filter\/"},"modified":"2019-05-03T02:35:10","modified_gmt":"2019-05-03T02:35:10","slug":"error-when-using-the-strip-html-filter","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-when-using-the-strip-html-filter\/","title":{"rendered":"Error when using the strip HTML filter"},"content":{"rendered":"<p>Hi there &#8211; I am using the strip HTML filter but when generating the feed, the plugin will return an error after &#8220;processing&#8221; a while.<\/p>\n<p>We are using the following code and version 1.13.1:<\/p>\n<pre><code>function strip_tags_from_short_description( $attributes, $feed_id, $product_id ) {\n\t$attributes[&#039;description&#039;] = strip_tags( $attributes[&#039;description&#039;] );\n\treturn $attributes;\n}\n\nadd_filter( &#039;wppfm_feed_item_value&#039;, &#039;strip_tags_from_short_description&#039; );<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-11491272","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11491272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11491272\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11491272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}