Benign go Download

sanitize-caja 0.1.4

“sanitize html using caja and reasonable assumptions”

JavaScript hex escape decoderString.fromCharCode call
SHA-256fe138ad01ebba24f3c84211bc6e1cc94b333e04bb21674b0eae406e2ef75734f

Evidence

English language detection lines 2–10
2// Copyright (C) 2010 Google Inc.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
URL-encodes data via encodeURIComponent lines 81–87
81}
82function encodeIfExists(unescapedPart) {
83 if ('string' == typeof unescapedPart) {
84 return encodeURIComponent(unescapedPart);
85 }
86 return null;
87};
URL-encodes data via encodeURI lines 96–108
96 */
97function encodeIfExists2(unescapedPart, extra) {
98 if ('string' == typeof unescapedPart) {
99 return encodeURI(unescapedPart).replace(extra, encodeOne);
100 }
101 return null;
102};
103/** converts a character in [\01-\177] to its url encoded equivalent. */
104function encodeOne(ch) {
105 var n = ch.charCodeAt(0);
106 return '%' + '0123456789ABCDEF'.charAt((n >> 4) & 0xf) +
107 '0123456789ABCDEF'.charAt(n & 0xf);
108}
Browser stages text for clipboard copy lines 1447–1453
1447 // functionality if the document isn't available.
1448 var entityLookupElement =
1449 ('undefined' !== typeof window && window['document'])
1450 ? window['document'].createElement('textarea') : null;
1451 /**
1452 * Decodes an HTML entity.
1453 *
JavaScript hex escape decoder lines 1489–1499
1489 if (ENTITIES.hasOwnProperty(name)) { return ENTITIES[name]; }
1490 var m = name.match(decimalEscapeRe);
1491 if (m) {
1492 return String.fromCharCode(parseInt(m[1], 10));
1493 } else if (!!(m = name.match(hexEscapeRe))) {
1494 return String.fromCharCode(parseInt(m[1], 16));
1495 } else if (entityLookupElement && safeEntityNameRe.test(name)) {
1496 entityLookupElement.innerHTML = '&' + name + ';';
1497 var text = entityLookupElement.textContent;
1498 ENTITIES[name] = text;
1499 return text;

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.