[opencms-dev] OpenCms removes scriplet code

Thomas Kraft thomas.kraft at synyx.de
Tue Sep 28 08:45:58 CEST 2004


Hi Eduard,

> 2. If I use scriplet as a standalone code, for example
> <code>
>   "<%= "foo" %>"
> </code>
> then after publishing I get the following  code:
> <code>
>   &qout;"
> </code>
> 
> Does anybody have any idea how to force OpenCms 5.0.1 to leave scriplets 
> untouched.

You can escape them so that they will not be recognized as scriptlets, 
but in the resulting html code they will appear as scriptlets, so that a 
secondary engine can process them.

There are several ways to do so, for the above example e.g.

<code>
   <%= "<" + "%= \"foo\" %" + ">" %>
</code>

ugly, but works fine :)

Greetings, Thomas



More information about the opencms-dev mailing list