1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
6<TITLE>
7Uses of Package org.owasp.html (OWASP Java HTML Sanitizer)
8</TITLE>
9
10
11<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
12
13<SCRIPT type="text/javascript">
14function windowTitle()
15{
16    if (location.href.indexOf('is-external=true') == -1) {
17        parent.document.title="Uses of Package org.owasp.html (OWASP Java HTML Sanitizer)";
18    }
19}
20</SCRIPT>
21<NOSCRIPT>
22</NOSCRIPT>
23
24</HEAD>
25
26<BODY BGCOLOR="white" onload="windowTitle();">
27<HR>
28
29
30<!-- ========= START OF TOP NAVBAR ======= -->
31<A NAME="navbar_top"><!-- --></A>
32<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
33<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
34<TR>
35<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
36<A NAME="navbar_top_firstrow"><!-- --></A>
37<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
38  <TR ALIGN="center" VALIGN="top">
39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  </TR>
47</TABLE>
48</TD>
49<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM>
51</TD>
52</TR>
53
54<TR>
55<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56&nbsp;PREV&nbsp;
57&nbsp;NEXT</FONT></TD>
58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59  <A HREF="../../../index.html?org/owasp/html/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
60&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
61&nbsp;<SCRIPT type="text/javascript">
62  <!--
63  if(window==top) {
64    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
65  }
66  //-->
67</SCRIPT>
68<NOSCRIPT>
69  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
70</NOSCRIPT>
71
72
73</FONT></TD>
74</TR>
75</TABLE>
76<A NAME="skip-navbar_top"></A>
77<!-- ========= END OF TOP NAVBAR ========= -->
78
79<HR>
80<CENTER>
81<H2>
82<B>Uses of Package<br>org.owasp.html</B></H2>
83</CENTER>
84
85<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
86<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
87<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
88Packages that use <A HREF="../../../org/owasp/html/package-summary.html">org.owasp.html</A></FONT></TH>
89</TR>
90<TR BGCOLOR="white" CLASS="TableRowColor">
91<TD><A HREF="#org.owasp.html"><B>org.owasp.html</B></A></TD>
92<TD>An efficient <A HREF="../../../org/owasp/html/HtmlSanitizer.html" title="class in org.owasp.html"><CODE>HtmlSanitizer</CODE></A>
93 configurable via a flexible
94 <A HREF="../../../org/owasp/html/HtmlPolicyBuilder.html" title="class in org.owasp.html"><CODE>HtmlPolicyBuilder</CODE></A>.&nbsp;</TD>
95</TR>
96<TR BGCOLOR="white" CLASS="TableRowColor">
97<TD><A HREF="#org.owasp.html.examples"><B>org.owasp.html.examples</B></A></TD>
98<TD>&nbsp;&nbsp;</TD>
99</TR>
100</TABLE>
101&nbsp;
102<P>
103<A NAME="org.owasp.html"><!-- --></A>
104<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
105<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
106<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
107Classes in <A HREF="../../../org/owasp/html/package-summary.html">org.owasp.html</A> used by <A HREF="../../../org/owasp/html/package-summary.html">org.owasp.html</A></FONT></TH>
108</TR>
109<TR BGCOLOR="white" CLASS="TableRowColor">
110<TD><B><A HREF="../../../org/owasp/html/class-use/AttributePolicy.html#org.owasp.html"><B>AttributePolicy</B></A></B>
111
112<BR>
113&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A policy that can be applied to an HTML attribute to decide whether or not to
114 allow it in the output, possibly after transforming its value.</TD>
115</TR>
116<TR BGCOLOR="white" CLASS="TableRowColor">
117<TD><B><A HREF="../../../org/owasp/html/class-use/CssSchema.html#org.owasp.html"><B>CssSchema</B></A></B>
118
119<BR>
120&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the kinds of tokens a CSS property's value can safely contain.</TD>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD><B><A HREF="../../../org/owasp/html/class-use/ElementPolicy.html#org.owasp.html"><B>ElementPolicy</B></A></B>
124
125<BR>
126&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A policy that can be applied to an element to decide whether or not to
127 allow it in the output, possibly after transforming attributes.</TD>
128</TR>
129<TR BGCOLOR="white" CLASS="TableRowColor">
130<TD><B><A HREF="../../../org/owasp/html/class-use/Handler.html#org.owasp.html"><B>Handler</B></A></B>
131
132<BR>
133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receives notification of problems.</TD>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlChangeListener.html#org.owasp.html"><B>HtmlChangeListener</B></A></B>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receives events when an HTML tag, or attribute is discarded.</TD>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlPolicyBuilder.html#org.owasp.html"><B>HtmlPolicyBuilder</B></A></B>
143
144<BR>
145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Conveniences for configuring policies for the <A HREF="../../../org/owasp/html/HtmlSanitizer.html" title="class in org.owasp.html"><CODE>HtmlSanitizer</CODE></A>.</TD>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlPolicyBuilder.AttributeBuilder.html#org.owasp.html"><B>HtmlPolicyBuilder.AttributeBuilder</B></A></B>
149
150<BR>
151&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Builds the relationship between attributes, the values that they may have,
152 and the elements on which they may appear.</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlSanitizer.Policy.html#org.owasp.html"><B>HtmlSanitizer.Policy</B></A></B>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receives events based on the HTML stream, and applies a policy to decide
159 what HTML constructs to allow.</TD>
160</TR>
161<TR BGCOLOR="white" CLASS="TableRowColor">
162<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlStreamEventReceiver.html#org.owasp.html"><B>HtmlStreamEventReceiver</B></A></B>
163
164<BR>
165&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A light-weight SAX-like listener for HTML.</TD>
166</TR>
167<TR BGCOLOR="white" CLASS="TableRowColor">
168<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlStreamRenderer.html#org.owasp.html"><B>HtmlStreamRenderer</B></A></B>
169
170<BR>
171&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a series of HTML tokens, writes valid, normalized HTML to the output.</TD>
172</TR>
173<TR BGCOLOR="white" CLASS="TableRowColor">
174<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlTextEscapingMode.html#org.owasp.html"><B>HtmlTextEscapingMode</B></A></B>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;From section 8.1.2.6 of http://www.whatwg.org/specs/web-apps/current-work/</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD><B><A HREF="../../../org/owasp/html/class-use/PolicyFactory.html#org.owasp.html"><B>PolicyFactory</B></A></B>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A factory that can be used to link a sanitizer to an output receiver and that
184 provides a convenient <code><A HREF="../../../org/owasp/html/PolicyFactory.html#sanitize(java.lang.String)"><CODE>sanitize</CODE></A></code>
185 method and a <code><A HREF="../../../org/owasp/html/PolicyFactory.html#and(org.owasp.html.PolicyFactory)"><CODE>and</CODE></A></code> method to compose
186 policies.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD><B><A HREF="../../../org/owasp/html/class-use/TCB.html#org.owasp.html"><B>TCB</B></A></B>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates that a program element is in the trusted computing base --
193 there exists a security property that could be violated if this code is not
194 correct.</TD>
195</TR>
196</TABLE>
197&nbsp;
198<P>
199<A NAME="org.owasp.html.examples"><!-- --></A>
200<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
201<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
202<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
203Classes in <A HREF="../../../org/owasp/html/package-summary.html">org.owasp.html</A> used by <A HREF="../../../org/owasp/html/examples/package-summary.html">org.owasp.html.examples</A></FONT></TH>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlSanitizer.Policy.html#org.owasp.html.examples"><B>HtmlSanitizer.Policy</B></A></B>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receives events based on the HTML stream, and applies a policy to decide
210 what HTML constructs to allow.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD><B><A HREF="../../../org/owasp/html/class-use/HtmlStreamEventReceiver.html#org.owasp.html.examples"><B>HtmlStreamEventReceiver</B></A></B>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A light-weight SAX-like listener for HTML.</TD>
217</TR>
218<TR BGCOLOR="white" CLASS="TableRowColor">
219<TD><B><A HREF="../../../org/owasp/html/class-use/PolicyFactory.html#org.owasp.html.examples"><B>PolicyFactory</B></A></B>
220
221<BR>
222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A factory that can be used to link a sanitizer to an output receiver and that
223 provides a convenient <code><A HREF="../../../org/owasp/html/PolicyFactory.html#sanitize(java.lang.String)"><CODE>sanitize</CODE></A></code>
224 method and a <code><A HREF="../../../org/owasp/html/PolicyFactory.html#and(org.owasp.html.PolicyFactory)"><CODE>and</CODE></A></code> method to compose
225 policies.</TD>
226</TR>
227</TABLE>
228&nbsp;
229<P>
230<HR>
231
232
233<!-- ======= START OF BOTTOM NAVBAR ====== -->
234<A NAME="navbar_bottom"><!-- --></A>
235<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
236<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
237<TR>
238<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
239<A NAME="navbar_bottom_firstrow"><!-- --></A>
240<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
241  <TR ALIGN="center" VALIGN="top">
242  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
243  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
244  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
245  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
246  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
247  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
248  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
249  </TR>
250</TABLE>
251</TD>
252<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
253<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM>
254</TD>
255</TR>
256
257<TR>
258<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
259&nbsp;PREV&nbsp;
260&nbsp;NEXT</FONT></TD>
261<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
262  <A HREF="../../../index.html?org/owasp/html/package-use.html" target="_top"><B>FRAMES</B></A>  &nbsp;
263&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
264&nbsp;<SCRIPT type="text/javascript">
265  <!--
266  if(window==top) {
267    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
268  }
269  //-->
270</SCRIPT>
271<NOSCRIPT>
272  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
273</NOSCRIPT>
274
275
276</FONT></TD>
277</TR>
278</TABLE>
279<A NAME="skip-navbar_bottom"></A>
280<!-- ======== END OF BOTTOM NAVBAR ======= -->
281
282<HR>
283
284</BODY>
285</HTML>
286