mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
Escaping HTML for values
WW-2319 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@628287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<#list stackObject.value.keySet() as propertyName>
|
||||
<#if renderRow==true></tr><tr><#else> <#assign renderRow=false> </#if>
|
||||
<td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>">${propertyName}</td>
|
||||
<td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"><#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()}<#else>null</#if></td>
|
||||
<td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"><#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()?html}<#else>null</#if></td>
|
||||
</tr>
|
||||
<#assign index= index + 1>
|
||||
</#list>
|
||||
@@ -73,7 +73,7 @@
|
||||
<#assign index=1>
|
||||
<#list stack.context.keySet() as contextKey>
|
||||
<tr bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>">
|
||||
<td>${contextKey}</td><td><#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()}<#else>null</#if></td>
|
||||
<td>${contextKey}</td><td><#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()?html}<#else>null</#if></td>
|
||||
</tr>
|
||||
<#assign index= index + 1>
|
||||
</#list>
|
||||
|
||||
Reference in New Issue
Block a user