0
votes

My requirement is very simple.

I want to add some html in a static page body.

I created a content type called Page.

I am adding HTML text into the body.

enter image description here

HTML is saved in database correctly.

But when I saw the same in front end it is showing HTML. enter image description here

I am new to Drupal, But have 6 years of experience in php. Please give me a solution.

2

2 Answers

3
votes

It is problem with your text format settings. You can select different text format every time you make content and you can set up default one for every content type. Make sure you using text format which you set up for proper content display: enter image description here

Assuming you are using "Full HTML" text format go on:

admin/config/content/formats

enter image description here

Click configure and make sure you turn off option display HTML as plain text:

enter image description here

Hope this helps.

0
votes

I think you need to specify text format type.
Could you find text format area in content edit page?

If you want to display as html page, you need to specify "Full HTML" in text format area.

enter image description here