"use strict"; var escapeHtml = require('escape-html'); /** * Escape entities for use in HTML * * @param {string} str Input string * * @return {string} */ function e(str) { return escapeHtml(str).replace(/'/g, '''); } /** * Render the main report HTML to a string * * @param {object} props Report properties * @param {string} data Raw report data * @param {string} inlineScripts App JS * @param {string} inlineStyles App CSS * @param {object} options App options * @param {string} scriptsUrl URL for app JS * @param {string} stylesUrl URL for app CSS * @param {string} title Report page title * @param {boolean} useInlineAssets Whether to render JS/CSS inline * * @return {string} */ function renderMainHTML(props) { var data = props.data, inlineScripts = props.inlineScripts, inlineStyles = props.inlineStyles, options = props.options, scriptsUrl = props.scriptsUrl, stylesUrl = props.stylesUrl, title = props.title, useInlineAssets = props.useInlineAssets; var styles = useInlineAssets ? "") : ""); var scripts = useInlineAssets ? "") : ""); var meta = ''; var head = "
".concat(meta, "