Compact html output

  •  06-16-2007, 4:30 AM

    Compact html output

    Hi

    I have a couple of fields on at product-description page, where I want the user to be able to use the cuteeditor.net.  My problem is, that the fields have a max length of 128 characters and when I use the cuteeditor it will insert a lot of spaces to format them HTML-code-output as nicely as possible. An example:

    Batteri/ledning
    Vaskbar under vand
    1 LED for opladning
    Shaving conditioner

    Results in:
    <html>
        <head>
        </head>
        <body>
            Batteri/ledning <br />
            Vaskbar under vand <br />
            1 LED for opladning<br />
            Shaving conditioner <br />
        </body>
    </html>

    But I would like it to be:
    Batteri/ledning<br />Vaskbar under vand<br />1 LED for opladning<br />Shaving conditioner<br />

    since this is the minimal amount of html needed to generate the result. Is there a way I can use the cuteeditor, so the result will look as closely as the above. the spaces are the biggest problem, since I have stripped away the tags surrounding the text (body, head, html).
View Complete Thread