@polargold/pg-frontend-vue
    Preparing search index...

    Function useSanitizeHtml

    • Reactive wrapper around pg-frontend-core's sanitizeHtml, for use with v-html. html may be a string, a ref or a getter. Resolves to null for empty input, so a template can v-if on the result.

      Parameters

      • html: MaybeRefOrGetter<string | null | undefined>
      • Optionaloptions: SanitizeHtmlOptions

      Returns ComputedRef<string | null>