Community Documentation

Displaying Images with Filtered HTML

Last updated July 20, 2010. Created by ssemaganda on February 24, 2007.
Edited by bekasu, emmajane, sepeck, DocMartin. Log in to edit this page.

To allow new tags in your content body you will need to configure the Input Formats and list the tags you would like to include. To allow images in your pages you will need to update these filters.

  1. Navigate to Administer > Input formats.
  2. Input formats settings

  3. Click on "configure" next to the input format you would like to update. Mostly likely this will be the basic format of, "Filtered HTML."
  4. At the top of the page, click the "Configure" tab.
  5. Scroll down to "Allowed HTML tags"
  6. Add img tag in Input format configuration

  7. Add <img> (with the angle brackets).
  8. Scroll to the bottom and click "Save configuration."

If you have other elements that are "disappearing" when the page is displayed, check the "Allowed HTML tags" field to see if there are other elements that need to be added to the list of allowed tags.

For more information about Input Formats, please read Text filters and Input Formats.

Img Tag Security Issues

There are issues regarding the security of adding the img tag to Filtered HTML, e.g. here, here, and here.

About this page

Drupal version
Drupal 5.x
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here