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.

EE's Rich Text fields are outputting some very strange HTML markup

January 11, 2013 6:29am

Subscribe [4]
  • #1 / Jan 11, 2013 6:29am

    JackWH

    3 posts

    - In EE’s Rich Text editor, I typed in the following content.
    - I did not do any fancy markup or formatting.
    - All I did was set each heading to an H4, and typed paragraphs normally.
    - I did not touch the code or alter any markup.

    This is how EE is outputting my (fairly normal) text in my template:

    <h4>The Project</h4>
    <p>        <br />
            <br />
            <div><br />
                <br />
                <div><br />
                    An iconic Lorem Ipsum led shopping centre at Location X. The 65,000 square foot multi-use facility includes a Lorem Ipsum Store built upon stilts to house customer parking underneath, together with 28 retail units, a food court, a petrol filling station and 18,000 square feet of office space.<br />
                    <div><br />
                        <br />
                        <div><br />
                            <br />
                            <div><br />
                                The focus of the design was to make a bold architectural statement and included an ambitious six-storey high, frameless, glass frontage with an unusual curved roof. <br />
                            </div><br />
                        </div><br />
                    </div><br />
                    </p><h4>The Challenge</h4>
    <p>                <div><br />
                        <br />
                        <div><br />
                            <br />
                            <div><br />
                                Creating an innovative glass structure, 24 metres high with a 10 degree angled lean. Nothing quite like this had ever been attempted in Europe before. It was a first and whilst Company Name had to ensure they were highly attentive to the practical safety aspects of achieving the construction, they also had to think about the clients aesthetic objectives to creating a striking piece of architecture that would draw in shoppers. <br />
                            </div><br />
                        </div><br />
                    </div><br />
                </div><br />
            </div>

    I am confused why so many blank

    tags are output, and why each subsequent paragraph is nested further and further into a series of nested
    <div>
    s. Is this normal behaviour for EE? It breaks my styling slightly, as
    <div>
    have small margins on them. If I were to code this manually, I would put something like
    <h4>The Project</h4> The text[...]
    - without wrapping the
    in a
    <div>

    .

    Is there anything I can do about this? Thanks!

  • #2 / Feb 15, 2013 12:27pm

    Wes McWhorter

    36 posts

    +1 to this issue. Love the Rich Text Editor, but what’s up with all the extraneous markup?

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

ExpressionEngine News!

#eecms, #events, #releases