[opencms-dev] Avoid html tags in OpenCmsString type
Andre Zwanziger
andre.zwanziger at iti.cs.uni-magdeburg.de
Thu May 24 16:04:54 CEST 2007
Hi,
my name is André Zwanziger and I am working at the Business Informatics
Group at the university of Magdeburg. The websites of my working group are
running on OpenCms successfully and we are very satisfied with the content
management system. For our websites, we implemented different content types
for our needs and used the OpenCmsString data type in the content definition
(xsd).
The problem is, that an author may write </body></html> in the OpenCmsString
field, which destroys the whole design/layout of our html pages. Therefore
we created a validation rule in the xsd with the regular expression ^[^<>]*$
which permits all characters but angle brackets. But this solution is not
satisfying yet, because we force the authors to write html entities instead
of the angle brackets. So my question in general is, how can we avoid html
tags in OpenCmsString fields with OpenCms?
Thanks for your comments in advance,
A. 20ER!
--
Dipl.-Wirtsch.-Inform. André Zwanziger
Very Large Business Applications Lab
phone: +49 (391) 67 19 36 1
http://www.wi-md.de/ http://www.vlba-lab.de/
More information about the opencms-dev
mailing list