tags:

views:

43

answers:

1

hi,

I'm doing a drupal site. i want show a facebook image in my page content in home page.

i have edited content of that page. i have edited the body of that content through admin

and put the text in body like this

The BikeGlow™ Safety Light runs on 2-AA batteries. Light tube length is 10'. Complete unit weighs under 2 oz (without batteries). Light tube attaches to frame with included attachment strips.
"It's like magic cycling protection from cars!" < img src='bikeglow_com/sites/default/files/5u84f48n.gif' alt="facebook" />

but after saving image is not showing there even that alt tag is not coming. can any one help me, what will be reason for his

+4  A: 

Drupal strips most HTML tags by default when you are creating a Story or Page. Allowed tags in the Filtered HTML mode are <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> and <dd>. As you can see, no <img> tag is allowed.

To do this, you can simply open the "Input Format" collapsed box beneath your text area field. If you open this, by default you should have the option to choose between "Filtered HTML" and "Full HTML".

Input Format

Choose for "Full HTML" and your <img> tag should be allowed and the image should show up.

Piro
This will most likely be the cause (+1) - another hint, though: You could also edit the settings for 'Filtered HTML' to allow image tags as well, and you could also create your own, additional, Input Format, configuring it to allow whatever you need. This would give more flexibility if one wants to allow different things for different roles/content types.
Henrik Opel

related questions