summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TSafeHtml/Home.page
blob: 88f8e162b53f90bce52cb1b274fd127c0d8de19e (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
<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>

</table>

</com:TContent>