Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: ui/webui/resources/js/parse_html_subset.js

Issue 1920253002: Refactors parse_html_subset() into i18n_behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/js/i18n_behavior.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/parse_html_subset.js
diff --git a/ui/webui/resources/js/parse_html_subset.js b/ui/webui/resources/js/parse_html_subset.js
index ff0df052be215c3c56b12e131cb3d9a80a6daacf..fc255708e2b574f5dd03662482f77e34e0721dbd 100644
--- a/ui/webui/resources/js/parse_html_subset.js
+++ b/ui/webui/resources/js/parse_html_subset.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
/**
- * Parse a very small subset of HTML. This ensures that insecure HTML /
+ * Parses a very small subset of HTML. This ensures that insecure HTML /
* javascript cannot be injected into the new tab page.
* @param {string} s The string to parse.
* @param {Array<string>=} opt_extraTags Optional extra allowed tags.
@@ -33,7 +33,7 @@ var parseHtmlSubset = (function() {
* @type {!Array<string>}
* @const
*/
- var allowedTags = ['A', 'B', 'STRONG'];
+ var allowedTags = ['A', 'B', 'SPAN', 'STRONG'];
/** @param {...Object} var_args Objects to merge. */
function merge(var_args) {
« no previous file with comments | « ui/webui/resources/js/i18n_behavior.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698