ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

html markup in the database

December 11, 2007 6:34am

Subscribe [2]
  • #1 / Dec 11, 2007 6:34am

    stef25

    268 posts

    Im trying to figure out what kind of markup EE stores in the db, for new posts. A test post shows up in the db as:

    here is the bodythis is a second line, after pressing enterhttp://www.internationalterrorist.com/bush.gifhere i pressed enter {encode="[email protected]" title="twice"}<i>and this is enter + italic</i>

    yet view source shows

    here is the body
    
    
    this is a second line, after pressing enter
    
    
    <a href="http://www.internationalterrorist.com/bush.gif">http://www.internationalterrorist.com/bush.gif</a>
    
    
    here i pressed enter 
    bunch of JS
    //]]>
    
    
    
    <i>and this is enter + italic</i>
    

    im guessing the p tags come from the templates (right?), but what about the
    ? why are these line breaks invisible in the database?

  • #2 / Dec 11, 2007 9:47am

    stef25

    268 posts

    why would it convert a line break to AND
    ? wouldnt p be more correct?

  • #3 / Dec 11, 2007 3:11pm

    Derek Jones

    7561 posts

    A single line break within a paragraph will be rendered with
    .  A double line break will create a new paragraph.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases