summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-06 13:23:26 +0000
committerctrlaltca@gmail.com <>2011-07-06 13:23:26 +0000
commit07a205ffd62910c79e09c5fd5247868c4b163ec5 (patch)
tree61632c2f91911f07d99951a5ea632b54ce87b260 /demos/quickstart/protected/pages/Controls
parent907d785046834eacb492a88a0eab9f349921de8d (diff)
fix for #341
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r--demos/quickstart/protected/pages/Controls/SafeHtml.page4
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page8
2 files changed, 12 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/SafeHtml.page b/demos/quickstart/protected/pages/Controls/SafeHtml.page
index 0bdea616..fb7ca46b 100644
--- a/demos/quickstart/protected/pages/Controls/SafeHtml.page
+++ b/demos/quickstart/protected/pages/Controls/SafeHtml.page
@@ -20,6 +20,10 @@
To use <tt>TSafeHtml</tt>, simply enclose the content to be secured within the <tt>TSafeHtml</tt> component tag in a template. The content may consist of both static text and PRADO controls. If the latter, the rendering result of the controls will be secured.
</p>
+<p class="block-content">
+If the content is encoded in UTF-7, you'll need to enable the <tt>RepackUTF7</tt> property to ensure the contents gets parsed correctly.
+</p>
+
<com:RunBar PagePath="Controls.Samples.TSafeHtml.Home" />
</com:TContent>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page
index cb681709..bf5947f9 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page
@@ -20,6 +20,14 @@ Safeguard the control rendering results:
</com:TSafeHtml>
</td></tr>
+<tr><td class="samplenote">
+Safeguard and UTF-7 string:
+</td><td class="sampleaction">
+<com:TSafeHtml RepackUTF7="true" >
+ <com:TLiteral Text="+ADw-script+AD4-alert(document.location)+ADw-/script+AD4-" />
+</com:TSafeHtml>
+</td></tr>
+
</table>
</com:TContent>