MCPcopy Create free account
hub / github.com/dataease/SQLBot / sanitizer

Function sanitizer

frontend/public/swagger-ui-bundle.js:69137–69154  ·  view source on GitHub ↗
(s, { useUnsafeMarkdown: o = !1 } = {})

Source from the content-addressed store, hash-verified

69135 })
69136 : null
69137 }
69138 function sanitizer(s, { useUnsafeMarkdown: o = !1 } = {}) {
69139 const i = o,
69140 a = o ? [] : ['style', 'class']
69141 return (
69142 o &&
69143 !sanitizer.hasWarnedAboutDeprecation &&
69144 (console.warn(
69145 'useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.'
69146 ),
69147 (sanitizer.hasWarnedAboutDeprecation = !0)),
69148 xP.sanitize(s, {
69149 ADD_ATTR: ['target'],
69150 FORBID_TAGS: ['style', 'form'],
69151 ALLOW_DATA_ATTR: i,
69152 FORBID_ATTR: a,
69153 })
69154 )
69155 }
69156 sanitizer.hasWarnedAboutDeprecation = !1
69157 class BaseLayout extends Re.Component {

Callers 2

kPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected