UNPKG

isomorphic-dompurify

Version:

Makes it possible to use DOMPurify on server and client in the same way.

1 lines 264 B
function e(e){return e&&e.default||e}module.exports=global.DOMPurify=global.DOMPurify||("undefined"!=typeof window?e(require("dompurify")):function(){const r=e(require("dompurify")),{JSDOM:u}=e(require("jsdom")),{window:o}=new u("<!DOCTYPE html>");return r(o)}());