Searched refs:sanitize (Results 1 - 25 of 37) sorted by relevance

12

/external/owasp/sanitizer/src/tests/org/owasp/html/
H A DHtmlSanitizerTest.java42 assertEquals("", sanitize(""));
43 assertEquals("", sanitize(null));
48 assertEquals("hello world", sanitize("hello world"));
53 assertEquals("<hello world>", sanitize("<hello world>"));
59 sanitize("<b>hello <i>world</i></b>"));
65 sanitize("<b>hello <bogus></bogus><i>world</i></b>"));
71 sanitize("<b>hello <i>world</i>"
79 sanitize("<b>hello <i onclick=\"takeOverWorld(this)\">world</i></b>"));
85 sanitize(
92 sanitize("<
343 private static String sanitize(@Nullable String html) throws Exception { method in class:HtmlSanitizerTest
[all...]
H A DSanitizersTest.java39 assertEquals("", Sanitizers.FORMATTING.sanitize(null));
40 assertEquals("", Sanitizers.FORMATTING.sanitize(""));
43 Sanitizers.FORMATTING.sanitize("Hello, World!"));
46 Sanitizers.FORMATTING.sanitize("Hello, <b>World</b>!"));
49 Sanitizers.FORMATTING.sanitize(
55 assertEquals("", Sanitizers.BLOCKS.sanitize(null));
58 Sanitizers.BLOCKS.sanitize("Hello, World!"));
61 Sanitizers.BLOCKS.sanitize("Hello, <b>World</b>!"));
64 Sanitizers.BLOCKS.sanitize(
76 assertEquals("", f.sanitize(nul
[all...]
H A DAntiSamyTest.java92 private static String sanitize(String html) { method in class:AntiSamyTest
95 HtmlSanitizer.sanitize(html, makePolicy(sb));
177 sanitize(html);
241 if (sanitize(s).length() != 0) {
245 if (sanitize(s).length() != 0) {
249 sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29>");
250 sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29>");
392 sanitize(testStr);
393 sanitize(testStr);
399 sanitize("<
[all...]
H A DExamplesTest.java61 // Invoke with no arguments to sanitize empty input stream to output.
82 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
89 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
96 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
H A DBenchmark.java70 n += sanitize(html).length();
93 n += sanitize(html).length();
118 "Full sanitize custom : %12d", (t3 - t2)));
122 "Full sanitize w/ PB : %12d", (t5 - t4)));
132 private static String sanitize(String html) throws Exception { method in class:Benchmark
143 HtmlSanitizer.sanitize(html, new HtmlSanitizer.Policy() {
202 HtmlSanitizer.sanitize(html, policyBuilder.build(renderer));
H A DHtmlChangeReporterTest.java72 HtmlSanitizer.sanitize(
/external/harfbuzz_ng/src/
H A Dhb-ot-layout-jstf-table.hh57 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::JstfPriority
60 shrinkageEnableGSUB.sanitize (c, this) &&
61 shrinkageDisableGSUB.sanitize (c, this) &&
62 shrinkageEnableGPOS.sanitize (c, this) &&
63 shrinkageDisableGPOS.sanitize (c, this) &&
64 shrinkageJstfMax.sanitize (c, this) &&
65 extensionEnableGSUB.sanitize (c, this) &&
66 extensionDisableGSUB.sanitize (c, this) &&
67 extensionEnableGPOS.sanitize (c, this) &&
68 extensionDisableGPOS.sanitize (
125 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::JstfLangSys
165 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::JstfScript
209 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::JSTF
[all...]
H A Dhb-ot-layout-gdef-table.hh74 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AttachList
76 return TRACE_RETURN (coverage.sanitize (c, this) && attachPoint.sanitize (c, this));
104 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CaretValueFormat1
130 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CaretValueFormat2
153 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CaretValueFormat3
155 return TRACE_RETURN (c->check_struct (this) && deviceTable.sanitize (c, this));
181 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CaretValue
183 if (!u.format.sanitize (c)) return TRACE_RETURN (false);
185 case 1: return TRACE_RETURN (u.format1.sanitize (
222 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LigGlyph
256 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LigCaretList
278 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkGlyphSetsFormat1
302 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkGlyphSets
367 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::GDEF
[all...]
H A Dhb-open-file-private.hh56 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::TableRecord
105 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::OffsetTable
133 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::TTCHeaderVersion1
135 return TRACE_RETURN (table.sanitize (c, this));
172 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::TTCHeader
174 if (unlikely (!u.header.version.sanitize (c))) return TRACE_RETURN (false);
177 case 1: return TRACE_RETURN (u.version1.sanitize (c));
236 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::OpenTypeFontFile
238 if (unlikely (!u.tag.sanitize (c))) return TRACE_RETURN (false);
243 case TrueTypeTag: return TRACE_RETURN (u.fontFace.sanitize (
[all...]
H A Dhb-ot-maxp-table.hh50 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::maxp
H A Dhb-ot-cmap-table.hh54 inline bool sanitize (hb_sanitize_context_t *c) {
128 inline bool sanitize (hb_sanitize_context_t *c) function in struct:OT::CmapSubtableFormat4
186 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CmapSubtableLongGroup
213 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CmapSubtableTrimmed
215 return TRACE_RETURN (c->check_struct (this) && glyphIdArray.sanitize (c));
245 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CmapSubtableLongSegmented
247 return TRACE_RETURN (c->check_struct (this) && groups.sanitize (c));
291 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::UnicodeValueRange
312 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::UVSMapping
351 inline bool sanitize (hb_sanitize_context_ function in struct:OT::VariationSelectorRecord
376 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CmapSubtableFormat14
421 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CmapSubtable
464 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::EncodingRecord
499 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::cmap
[all...]
H A Dhb-ot-layout-gpos-table.hh157 if ((format & xPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
158 if ((format & yPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
159 if ((format & xAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
160 if ((format & yAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
202 /* Just sanitize referenced Device tables. Doesn't check the values themselves. */
228 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AnchorFormat1
257 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AnchorFormat2
285 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AnchorFormat3
287 return TRACE_RETURN (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (
320 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Anchor
352 inline bool sanitize (hb_sanitize_context_t *c, unsigned int cols) { function in struct:OT::AnchorMatrix
377 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::MarkRecord
424 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkArray
460 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SinglePosFormat1
509 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SinglePosFormat2
541 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SinglePos
645 inline bool sanitize (hb_sanitize_context_t *c, const sanitize_closure_t *closure) { function in struct:OT::PairSet
695 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::PairPosFormat1
784 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::PairPosFormat2
844 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::PairPos
867 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::EntryExitRecord
981 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CursivePosFormat1
1010 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CursivePos
1072 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkBasePosFormat1
1109 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkBasePos
1192 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkLigPosFormat1
1230 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkLigPos
1309 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkMarkPosFormat1
1349 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MarkMarkPos
1416 inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) { function in struct:OT::PosLookupSubTable
1513 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::PosLookup
1537 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::GPOS
[all...]
H A Dhb-ot-layout-gsub-table.hh100 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SingleSubstFormat1
102 return TRACE_RETURN (coverage.sanitize (c, this) && deltaGlyphID.sanitize (c));
176 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SingleSubstFormat2
178 return TRACE_RETURN (coverage.sanitize (c, this) && substitute.sanitize (c));
233 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::SingleSubst
235 if (!u.format.sanitize (c)) return TRACE_RETURN (false);
237 case 1: return TRACE_RETURN (u.format1.sanitize (c));
238 case 2: return TRACE_RETURN (u.format2.sanitize (
315 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Sequence
387 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MultipleSubstFormat1
432 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::MultipleSubst
538 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AlternateSubstFormat1
583 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::AlternateSubst
689 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Ligature
767 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LigatureSet
851 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LigatureSubstFormat1
899 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LigatureSubst
1020 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ReverseChainSingleSubstFormat1
1063 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ReverseChainSingleSubst
1117 inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) { function in struct:OT::SubstLookupSubTable
1289 inline bool sanitize (hb_sanitize_context_t *c) function in struct:OT::SubstLookup
1327 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::GSUB
[all...]
H A Dhb-ot-layout-common-private.hh68 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::Record
71 return TRACE_RETURN (c->check_struct (this) && offset.sanitize (c, base, &closure));
124 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::RecordListOf
126 return TRACE_RETURN (RecordArrayOf<Type>::sanitize (c, this));
137 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::RangeRecord
201 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::LangSys
204 return TRACE_RETURN (c->check_struct (this) && featureIndex.sanitize (c));
240 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::Script
243 return TRACE_RETURN (defaultLangSys.sanitize (c, this) && langSys.sanitize (
263 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::FeatureParamsSize
374 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::FeatureParamsStylisticSet
407 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::FeatureParamsCharacterVariants
447 inline bool sanitize (hb_sanitize_context_t *c, hb_tag_t tag) { function in struct:OT::FeatureParams
488 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::Feature
598 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Lookup
654 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CoverageFormat1
740 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::CoverageFormat2
835 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Coverage
946 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ClassDefFormat1
1002 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ClassDefFormat2
1059 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ClassDef
1151 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Device
[all...]
H A Dhb-ot-hmtx-table.hh60 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::_mtx
H A Dhb-ot-name-table.hh59 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::NameRecord
109 if (!nameRecord[i].sanitize (c, string_pool)) return TRACE_RETURN (false);
113 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::name
H A Dhb-ot-head-table.hh54 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::head
H A Dhb-ot-hhea-table.hh52 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::_hea
H A Dhb-open-type-private.hh183 inline return_t dispatch (const T &obj) { return obj.sanitize (this); }
290 /* Template to sanitize an object. */
294 static hb_blob_t *sanitize (hb_blob_t *blob) { function in struct:OT::Sanitizer
314 sane = t->sanitize (c);
319 /* sanitize again to ensure no toe-stepping */
321 sane = t->sanitize (c);
622 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::IntType
649 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LONGDATETIME
722 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::FixedVersion
757 inline bool sanitize (hb_sanitize_context_ function in struct:OT::OffsetTo
766 inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) { function in struct:OT::OffsetTo
841 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ArrayOf
856 inline bool sanitize (hb_sanitize_context_t *c, void *base) { function in struct:OT::ArrayOf
866 inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) { function in struct:OT::ArrayOf
913 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::OffsetListOf
918 inline bool sanitize (hb_sanitize_context_t *c, T user_data) { function in struct:OT::OffsetListOf
957 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::HeadlessArrayOf
[all...]
H A Dhb-ot-layout-gsubgpos-private.hh948 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::LookupRecord
1171 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Rule
1173 return inputCount.sanitize (c)
1174 && lookupCount.sanitize (c)
1235 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::RuleSet
1237 return TRACE_RETURN (rule.sanitize (c, this));
1317 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ContextFormat1
1319 return TRACE_RETURN (coverage.sanitize (c, this) && ruleSet.sanitize (c, this));
1409 inline bool sanitize (hb_sanitize_context_ function in struct:OT::ContextFormat2
1497 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ContextFormat3
1537 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Context
1729 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainRule
1798 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainRuleSet
1877 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainContextFormat1
1987 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainContextFormat2
2108 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainContextFormat3
2155 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ChainContext
2181 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::ExtensionFormat1
2238 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::Extension
2294 inline bool sanitize (hb_sanitize_context_t *c) { function in struct:OT::GSUBGPOS
[all...]
H A Dhb-face.cc171 hb_face_for_data_closure_t *closure = _hb_face_for_data_closure_create (OT::Sanitizer<OT::OpenTypeFontFile>::sanitize (hb_blob_reference (blob)), index);
431 hb_blob_t *head_blob = OT::Sanitizer<OT::head>::sanitize (reference_table (HB_OT_TAG_head));
475 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_OT_TAG_maxp));
/external/clang/test/SemaTemplate/
H A Darray-to-pointer-decay.cpp22 template <typename Type> static bool sanitize() { function
26 bool closure = sanitize<int>();
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/
H A Dsearchcvs.php62 <input type="text" size="60" id="q" name="q"<?php print ($_GET["q"] ? " value=\"" . sanitize($_GET["q"], "text") . "\"" : ""); ?>/>
78 $title = "<span>$rows results total</span>Showing results " . ($offset + 1) . "-" . ($offset + $pagesize > $rows ? $rows : $offset + $pagesize) . " for " . ($_GET["q"] == "" ? "last $days days of commits" : "$et" . sanitize($_GET["q"], "text"));
79 $title = ($rows == 0 ? "No results found for " . sanitize($_GET["q"], "text") . "" : $title);
214 function sanitize($str, $type = "url") function
223 $text = (!$selected ? "<a href=\"?q=" . sanitize($_GET["q"]) . "&amp;p=$page\">$innertext</a>" : $innertext);
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DPolicyFactory.java44 * provides a convenient <code>{@link PolicyFactory#sanitize sanitize}</code>
100 public String sanitize(@Nullable String html) { method in class:PolicyFactory
101 return sanitize(html, null, null);
107 * @param html the string of HTML to sanitize.
116 public <CTX> String sanitize( method in class:PolicyFactory
121 HtmlSanitizer.sanitize(
/external/owasp/sanitizer/src/main/org/owasp/html/examples/
H A DSlashdotPolicyExample.java98 // Fetch the HTML to sanitize.
117 // Use the policy defined above to sanitize the HTML.
118 HtmlSanitizer.sanitize(html, POLICY_DEFINITION.apply(renderer));

Completed in 5574 milliseconds

12