Closed (fixed)
Project:
Feeds
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 06:34 UTC
Updated:
14 Sep 2010 at 01:30 UTC
Hello!
How I can strip HTML tags in a body of feed_item node (like in the Filtered HTML or may be use Filtered HTML) in its records? I need clear body without picture, link and other.
Need help.
Comments
Comment #1
hanno commentedWhen you configure a specific input format filter on your site, can you use that for this? it should output only html you allowed. You can disallow
<a> <img>and other tags you don't want to show.The html is, however, stored in full, including these tags. But that is good practice. If you once change you mind you can choose to show images or to grab them.
Comment #2
kodo commentedHanno, thank you for you answer, but I know about input format filter. I grab image to CCK image field, that is why I not need to show images in a body. I looking for the way to store filter html.
Comment #3
alex_b commented#1 is the answer. Create an import filter (see Drupal core documentation) excluding all the HTML tags you do not want to see showing up, select that import filter in the node processor settings of your feeds importer (admin/build/feeds), clear all caches on admin/settings/performance, import. You should see now only those tags that you have not excluded.