/* global html_sanitize */
import cajaSanitizers from 'ghost-admin/utils/caja-sanitizers';
import {assign} from '@ember/polyfills';
import {helper} from '@ember/component/helper';
import {isArray} from '@ember/array';
export function sanitizeHtml(params, options = {}) {
let html = isArray(params) ? params[0] : params;
options = assign({replaceJS: true}, options);
// replace script and iFrame
if (options.replaceJS) {
html = html.replace(/