@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
15 lines (14 loc) • 550 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sanitizeRichContentHtml = sanitizeRichContentHtml;
var _sanitizeHtml = _interopRequireDefault(require("sanitize-html"));
var _htmlAllowedTags = require("./htmlAllowedTags");
function sanitizeRichContentHtml(value) {
return (0, _sanitizeHtml["default"])(value, {
allowedTags: _htmlAllowedTags.allowedTags,
allowedAttributes: _htmlAllowedTags.allowedAttributes
});
}