You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2008/07/10 01:49:29 UTC
svn commit: r675381 - /velocity/tools/trunk/examples/showcase/demo.vm
Author: nbubna
Date: Wed Jul 9 16:49:29 2008
New Revision: 675381
URL: http://svn.apache.org/viewvc?rev=675381&view=rev
Log:
escape xml in showcase demo results
Modified:
velocity/tools/trunk/examples/showcase/demo.vm
Modified: velocity/tools/trunk/examples/showcase/demo.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/demo.vm?rev=675381&r1=675380&r2=675381&view=diff
==============================================================================
--- velocity/tools/trunk/examples/showcase/demo.vm (original)
+++ velocity/tools/trunk/examples/showcase/demo.vm Wed Jul 9 16:49:29 2008
@@ -57,7 +57,7 @@
## simply call the method
#set( $result = $call )
#set( $result = $render.eval($call) )
- <td valign="top" id="${method.javadocRef}">#if( $result == $call )$text.demo.nullResult#else$result#end</td>
+ <td valign="top" id="${method.javadocRef}">#if( $result == $call )$text.demo.nullResult#else$esc.xml($result)#end</td>
#else
## create a form to allow the user to input values and call the method
<form method="get" name="$method.uniqueName" action="$link.self.anchor($method.javadocRef)"> ## HttpUnit doesn't like anchor-only links
@@ -90,7 +90,7 @@
<br>
$call
=
- <div id="$method.javadocRef">#if( $result == $call )$demo.nullResult#else$result#end</div>
+ <div id="$method.javadocRef">#if( $result == $call )$demo.nullResult#else$esc.xml($result)#end</div>
#end
## maintain all params for other method demos
#foreach( $param in $params.all.keySet() )
@@ -150,7 +150,7 @@
<br>
$params.custom
=
- <div>#if( $result == $call )$demo.nullResult#else$result#end</div>
+ <div>#if( $result == $call )$demo.nullResult#else$esc.xml($result)#end</div>
#end
## maintain params for all the other demos
#foreach( $param in $params.all.keySet() )