How to use html-escaper - 8 common examples

To help you get started, we’ve selected a few html-escaper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github istanbuljs / istanbuljs / packages / istanbul-reports / lib / html / index.js View on Github external
function htmlHead(details) {
    return `

    <title>Code coverage report for ${html.escape(details.entity)}</title>
    
    
    
    
    
    <style type="text/css">
        .coverage-summary .sorter {
            background-image: url(${html.escape(details.sorter.image)});
        }
    </style>

    `;
}
github istanbuljs / istanbuljs / packages / istanbul-reports / lib / html / index.js View on Github external
<div class="push"></div>
            
            <div class="footer quiet pad2 space-top1 center small">
                Code coverage generated by
                <a href="https://istanbul.js.org/">istanbul</a>
                at ${html.escape(details.datetime)}
            </div>
        
        
        
        
        
    

    `;
}
github makuga01 / dnsFookup / FE / node_modules / istanbul-reports / lib / html / index.js View on Github external
function footerTemplate(details) {
    return `
                <div class="push"></div>
            
            <div class="footer quiet pad2 space-top1 center small">
                Code coverage generated by
                <a href="https://istanbul.js.org/">istanbul</a>
                at ${html.escape(details.datetime)}
            </div>
        
        
        
        
        
    

    `;
}
github makuga01 / dnsFookup / FE / node_modules / istanbul-reports / lib / html / index.js View on Github external
function htmlHead(details) {
    return `

    <title>Code coverage report for ${html.escape(details.entity)}</title>
    
    
    
    
    <style type="text/css">
        .coverage-summary .sorter {
            background-image: url(${html.escape(details.sorter.image)});
        }
    </style>

    `;
}
github WebReflection / viperHTML / index.js View on Github external
key,
      css = [],
      keys = Object.keys(value),
      i = 0, length = keys.length; i &lt; length; i++
    ) {
      key = keys[i];
      css.push(
        key.replace(hyphen, ized),
        ':',
        asCSSValue(key, value[key]),
        ';'
      );
    }
    return htmlEscape(css.join(''));
  } else {
    return htmlEscape(value);
  }
}
github makuga01 / dnsFookup / FE / node_modules / istanbul-reports / lib / html / index.js View on Github external
function htmlHead(details) {
    return `

    <title>Code coverage report for ${html.escape(details.entity)}</title>
    
    
    
    
    <style type="text/css">
        .coverage-summary .sorter {
            background-image: url(${html.escape(details.sorter.image)});
        }
    </style>

    `;
}
github istanbuljs / istanbuljs / packages / istanbul-reports / lib / html / index.js View on Github external
function htmlHead(details) {
    return `

    <title>Code coverage report for ${html.escape(details.entity)}</title>
    
    
    
    
    
    <style type="text/css">
        .coverage-summary .sorter {
            background-image: url(${html.escape(details.sorter.image)});
        }
    </style>

    `;
}
github makuga01 / dnsFookup / FE / node_modules / istanbul-reports / lib / html / index.js View on Github external
result.unshift(
                ``,
                `<div class="chart">${percentGraph(info.pct)}</div>`,
                ``
            );
        }

        return result;
    };

    return []
        .concat(
            '',
            `<a href="${html.escape(
                output
            )}">${html.escape(file)}</a>`,
            summaryType('statements', true),
            summaryType('branches'),
            summaryType('functions'),
            summaryType('lines'),
            '\n'
        )
        .join('\n\t');
}

html-escaper

fast and safe way to escape and unescape &<>'" chars

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular html-escaper functions