Div into the content of an Entry I have a problem when trying to put a div into a content of an entry.

I'm creating entries, building a HTML hierarchy that helps me to manipulate the content with JS. I'm adding divs an build something like this:

&lt;div id="cont1" class="content" &gt;
  &lt;h3&gt;Hi I am a title&lt;/h3&gt;
  &lt;p&gt;this is the introduction &lt;/p&gt;
  &lt;p&gt;this is the content&lt;/p&gt;
&lt;/div&gt;


When I create this, the hierarchy is right, but when I edit it from the CP, all the divs change to this:

&lt;p id="cont1" class="content" &gt;&lt;/p&gt;
&lt;h3&gt;Hi I am a title&lt;/h3&gt;
&lt;p&gt;this is the introduction &lt;/p&gt;
&lt;p&gt;this is the content&lt;/p&gt;


What can I do to prevent this from happening? Hope you can help me, thanks.
Assuming you are using the Rich Text field, you'll want to look at the Redactor setting, convertDivs.


  convertDivs (Default setting is true)
  
  With this option turned on, Redactor will automatically replace divs to paragraphs.


Go in to your field settings:
Craft Admin &rsaquo; Settings &rsaquo; Fields &rsaquo; Rich Text field name

Look at the config settings to determine which config file you are using. Then, go in to your craft/config/redactor/ConfigFile.json file and edit your redactor settings to exclude the convertDivs setting (assuming nothing else in your config file):

{
    convertDivs: false
}