Template file: Home.page

/Controls/Samples/TSafeHtml/Home.page

<com:TContent ID="body">

<h1>TSafeHtml Samples</h1>

<table class="sampletable">

<tr><td class="samplenote">
Safeguard a static string:
</td><td class="sampleaction">
<com:TSafeHtml>
  <a href="javascript:alert();">javascript link stripped</a>
</com:TSafeHtml>
</td></tr>

<tr><td class="samplenote">
Safeguard the control rendering results:
</td><td class="sampleaction">
<com:TSafeHtml>
  <com:TLiteral Text="<a>a nonclosing tag" />
</com:TSafeHtml>
</td></tr>

<tr><td class="samplenote">
Safeguard and UTF-7 string:
</td><td class="sampleaction">
<com:TSafeHtml RepackUTF7="true" >
  <com:TLiteral Text="There's a UTF-7 encoded javascript block between here and+ADw-script+AD4-alert(document.location)+ADw-/script+AD4- here" />
</com:TSafeHtml>
</td></tr>

</table>

</com:TContent>