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

Unified Diff: chrome/browser/resources/file_manager/js/util.js

Issue 7529036: Add warning message to downloads directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing image Created 9 years, 4 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
Index: chrome/browser/resources/file_manager/js/util.js
diff --git a/chrome/browser/resources/file_manager/js/util.js b/chrome/browser/resources/file_manager/js/util.js
index 0f2adef8a817b20185701cb80d2313881c4e233a..2217aab6503eb0c8b1bf86efc213ee1f1b951c67 100644
--- a/chrome/browser/resources/file_manager/js/util.js
+++ b/chrome/browser/resources/file_manager/js/util.js
@@ -57,6 +57,16 @@ var util = {
return code;
},
+ htmlUnescape: function(str) {
+ return str.replace(/&(lt|gt|amp);/g, function(entity) {
+ switch (entity) {
+ case '&lt;': return '<';
+ case '&gt;': return '>';
+ case '&amp;': return '&';
+ }
+ });
+ },
+
/**
* Given a list of Entries, recurse any DirectoryEntries, and call back
* with a list of all file and directory entries encountered (including the
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/browser/resources/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698