Skip to content

Import `SafeHtml` directive from GitLab UI

Dheeraj Joshi requested to merge djadmin-import-safe-html-directive into master

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:

  1. it'd allow us to reuse configuration across DOMPurify & v-safe-html, easy rollout + maintenance.
  2. it'd allow us to support security release workflow, and backporting the fixes.

We'll do the migration part of the next MR.

Merge request reports