mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 15:48:27 -05:00
fix CSS escape (remove HTML sanitize)
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
|||||||
this.$emit("checked-state-changed", this.ingredient)
|
this.$emit("checked-state-changed", this.ingredient)
|
||||||
},
|
},
|
||||||
escapeCSS: function (classname) {
|
escapeCSS: function (classname) {
|
||||||
return CSS.escape(this.$sanitize(escapeCSS(classname)))
|
return CSS.escape(escapeCSS(classname))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
import {ResolveUrlMixin, escapeCSS} from "@/utils/utils";
|
import {ResolveUrlMixin, escapeCSS} from "@/utils/utils";
|
||||||
|
|
||||||
import Vue from "vue"
|
|
||||||
import VueSanitize from "vue-sanitize"
|
|
||||||
|
|
||||||
Vue.use(VueSanitize)
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'KeywordsComponent',
|
name: 'KeywordsComponent',
|
||||||
mixins: [ResolveUrlMixin],
|
mixins: [ResolveUrlMixin],
|
||||||
@@ -43,7 +38,7 @@ export default {
|
|||||||
return this.escapeCSS('_keywordname-' + k.label)
|
return this.escapeCSS('_keywordname-' + k.label)
|
||||||
},
|
},
|
||||||
escapeCSS: function (classname) {
|
escapeCSS: function (classname) {
|
||||||
return CSS.escape(this.$sanitize(escapeCSS(classname)))
|
return CSS.escape(escapeCSS(classname))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,9 +128,7 @@ import IngredientsCard from "@/components/IngredientsCard"
|
|||||||
import Vue from "vue"
|
import Vue from "vue"
|
||||||
import moment from "moment"
|
import moment from "moment"
|
||||||
import {ResolveUrlMixin, calculateHourMinuteSplit} from "@/utils/utils"
|
import {ResolveUrlMixin, calculateHourMinuteSplit} from "@/utils/utils"
|
||||||
import VueSanitize from "vue-sanitize"
|
|
||||||
|
|
||||||
Vue.use(VueSanitize)
|
|
||||||
Vue.prototype.moment = moment
|
Vue.prototype.moment = moment
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -200,7 +198,7 @@ export default {
|
|||||||
this.$refs[`id_reactive_popover_${this.step.id}`].$emit("open")
|
this.$refs[`id_reactive_popover_${this.step.id}`].$emit("open")
|
||||||
},
|
},
|
||||||
escapeCSS: function (classname) {
|
escapeCSS: function (classname) {
|
||||||
return CSS.escape(this.$sanitize(escapeCSS(classname)))
|
return CSS.escape(escapeCSS(classname))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user