escape data in calendar popover (#2960)

This commit is contained in:
Kevin Papst
2021-11-19 22:57:03 +01:00
committed by GitHub
parent 89bfa82c61
commit 9470699798
9 changed files with 51 additions and 16 deletions

View File

@@ -71,14 +71,6 @@ export default class KimaiPlugin {
* @returns {string}
*/
escape(title) {
const tagsToReplace = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
};
return title.replace(/[&<>]/g, function(tag) {
return tagsToReplace[tag] || tag;
});
return this.getPlugin('escape').escapeForHtml(title);
};
}