@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
77 lines (76 loc) • 1.15 kB
JavaScript
import sanitizeHtml from 'sanitize-html';
export var allowedTags = sanitizeHtml.defaults.allowedTags.concat([
'u',
'abbr',
'cite',
'dd',
'dfn',
'dl',
'dt',
'kbd',
'mark',
'q',
's',
'samp',
'small',
'sub',
'sup',
'time',
'var',
'address',
'article',
'aside',
'bdi',
'bdo',
'body',
'col',
'colgroup',
'data',
'del',
'figcaption',
'figure',
'footer',
'h1',
'h2',
'head',
'header',
'hgroup',
'html',
'img',
'ins',
'main',
'nav',
'rp',
'rt',
'ruby',
'section',
'span',
'style',
'summary',
'sup',
'tfoot',
'title',
'wbr'
]);
export var allowedAttributes = {
iframe: [
'id',
'data-media-id',
'data-media-type',
'title',
'src',
'width',
'height',
'name',
'align',
'style',
'class',
'sandbox',
'loading',
'allowfullscreen',
'webkitallowfullscreen',
'mozallowfullscreen',
'allow',
'data-old-link'
]
};