blob: bf5947f992560d98312fa1dda3f020f93b92018e (
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="+ADw-script+AD4-alert(document.location)+ADw-/script+AD4-" />
</com:TSafeHtml>
</td></tr>
</table>
</com:TContent>
|