fix CSS escape (remove HTML sanitize)

This commit is contained in:
tomtjes
2024-02-14 17:18:26 -05:00
parent 8e72108290
commit b5a204265a
3 changed files with 3 additions and 10 deletions

View File

@ -127,7 +127,7 @@ export default {
this.$emit("checked-state-changed", this.ingredient)
},
escapeCSS: function (classname) {
return CSS.escape(this.$sanitize(escapeCSS(classname)))
return CSS.escape(escapeCSS(classname))
}
},
}

View File

@ -17,11 +17,6 @@
import {ResolveUrlMixin, escapeCSS} from "@/utils/utils";
import Vue from "vue"
import VueSanitize from "vue-sanitize"
Vue.use(VueSanitize)
export default {
name: 'KeywordsComponent',
mixins: [ResolveUrlMixin],
@ -43,7 +38,7 @@ export default {
return this.escapeCSS('_keywordname-' + k.label)
},
escapeCSS: function (classname) {
return CSS.escape(this.$sanitize(escapeCSS(classname)))
return CSS.escape(escapeCSS(classname))
}
}
}

View File

@ -128,9 +128,7 @@ import IngredientsCard from "@/components/IngredientsCard"
import Vue from "vue"
import moment from "moment"
import {ResolveUrlMixin, calculateHourMinuteSplit} from "@/utils/utils"
import VueSanitize from "vue-sanitize"
Vue.use(VueSanitize)
Vue.prototype.moment = moment
export default {
@ -200,7 +198,7 @@ export default {
this.$refs[`id_reactive_popover_${this.step.id}`].$emit("open")
},
escapeCSS: function (classname) {
return CSS.escape(this.$sanitize(escapeCSS(classname)))
return CSS.escape(escapeCSS(classname))
}
},
}