mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 23:59:45 +02:00
chore: Get Rid of Warnings (#2599)
* ignore unsafe html warnings * remove unused import * re-order attrs * removed unused vars/imports * removed unused import * refactored v-html * removed more unused things
This commit is contained in:
parent
b86c4e5865
commit
bd79c1db2f
12 changed files with 23 additions and 17 deletions
|
@ -3,7 +3,7 @@ import { useFraction } from "./use-fraction";
|
|||
import { RecipeIngredient } from "~/lib/api/types/recipe";
|
||||
const { frac } = useFraction();
|
||||
|
||||
function sanitizeIngredientHTML(rawHtml: string) {
|
||||
export function sanitizeIngredientHTML(rawHtml: string) {
|
||||
return DOMPurify.sanitize(rawHtml, {
|
||||
USE_PROFILES: { html: true },
|
||||
ALLOWED_TAGS: ["b", "q", "i", "strong", "sup"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue