We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd00d84 commit e7bb44aCopy full SHA for e7bb44a
data/js/perspective.manager.js
@@ -196,8 +196,8 @@ var updateFileBrowserData = function(dirList) {
196
// Considering Unix HiddenEntries (. in the beginning of the filename)
197
if (TSCORE.Config.getShowUnixHiddenEntries() ||
198
(!TSCORE.Config.getShowUnixHiddenEntries() && (dirList[i].name.indexOf(".") != 0))) {
199
- filename = dirList[i].name.replace(/(<([^>]+)>)/ig,""); // sanitizing filename
200
- path = dirList[i].path.replace(/(<([^>]+)>)/ig,""); // sanitizing filepath
+ filename = $("<html>").text(dirList[i].name).html();
+ path = $("<html>").text(dirList[i].path).html();
201
tags = TSCORE.TagUtils.extractTags(path);
202
title = TSCORE.TagUtils.extractTitle(path);
203
ext = TSCORE.TagUtils.extractFileExtension(path);
0 commit comments