Import `SafeHtml` directive from GitLab UI
Related issue - #369063 (closed)
What does this MR do and why?
This adds v-safe-html
directive to gitlab-org/gitlab
, forked from https://gitlab.com/gitlab-org/gitlab-ui/-/blob/main/src/directives/safe_html/safe_html.js.
Main advantages of moving this directive to the main repo are:
- it'd allow us to reuse configuration across
DOMPurify
&v-safe-html
, easy rollout + maintenance. - it'd allow us to support security release workflow, and backporting the fixes.
We'll do the migration part of the next MR.