summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page
blob: 9beb8bd14c667bd593d179d26b5135dfdcd08f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<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>