[opencms-dev] OpenCMS messing up my HTML
Frans Postma
fpostma at xs4all.nl
Fri Apr 22 20:43:35 CEST 2005
It looks like an overly aggressive cleanup aka "tidy". Easiest would be to not tell OpenCMS it is html I suppose. Just make it a
plain text file, which you then include via a jsp page.
I'll agree it would be nice to not have OpenCMS change inputted text unless the users specifically requests that. However it
appears to be nessecary since that text is intergrated into an underlying xml document. That is my understand of the process
anyway. (a bit like having another user edit a piece of text which will be included in a table, what happens when the user
includes an unclodes <tr> ?? POOF! :-)
Frans
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nick Panienski
> Sent: vrijdag 22 april 2005 14:56
> To: 'The OpenCms mailing list'
> Subject: [opencms-dev] OpenCMS messing up my HTML
>
> Howdy,
>
> how comes OpenCMS 'interpretes' my HTML code?
>
> Say I have a snippet with CSS-Classes, as soon as I edit the
> code with the
> text editor and save it my double quotes around my class
> definition are
> gone? This is acceptable for class="narrowimage" or
> something, but what if
> we use something like class="link red massive"? I need my
> double quotes,
> otherwise not all three CSS-classes are read correctly.
>
> Or take this example: I have a snippet for js window popups.
> I don't want an
> editor to remember the correct syntax, so he can put this
> snippet into his
> text:
>
> <!-- POPUP -->
> <a
> href="#"
> onclick="javascript:window.open('index.html','popup','height=4
> 00,width=500,s
> crollbars=yes')">
> xyz</a>
> <!-- POPUP END -->
>
> This is what OCMS does to the code after using the snippet:
>
> <P><A
> onclick="javascript:window.open('index.html','popup','height=4
> 00,width=500,s
> crollbars=yes')"
> href="#">xyz</A>
> <!-- POPUP END --></P>
>
> This sucks! How comes the first commentary is missing
> completely, who told
> CMS to put p-tags around my snippet and to be a smart aleck:
> aren't html
> tags supposed to be written in lower case?! ;)
>
> Is there any way to keep OCMS from 'interpreting' my HTML?
>
> Regards
> Nick
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list