escape data in calendar popover (#2960)
This commit is contained in:
@@ -71,14 +71,6 @@ export default class KimaiPlugin {
|
||||
* @returns {string}
|
||||
*/
|
||||
escape(title) {
|
||||
const tagsToReplace = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
};
|
||||
|
||||
return title.replace(/[&<>]/g, function(tag) {
|
||||
return tagsToReplace[tag] || tag;
|
||||
});
|
||||
return this.getPlugin('escape').escapeForHtml(title);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user