I have a simple text that contains tags but when I try to render the field, the img tags disappear!

<?php print render($content['field_with_img_tags']); ?>


2 Answers 2


What type of field are you using ? If it is a body_format using a format (i.e.: Filtered HTML, Full HTML) verify the filter settings. Probably Limit allowed HTML tags is enabled and the tag is not part of the allowed tags.

To verify / change settings, it is under admin/config/content/formats and click on configure link of your used format.

  • Yes, that's the reason ! fussy drupal
    – a77icu5
    Nov 13, 2013 at 21:47


print drupal_render($content['field_with_img_tags']);
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post.
    – Bala
    Nov 9, 2013 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.