INNER CODE UNIT · JavaScript

esc

netnr/workers · wwwroot/loggly.js:59

    function esc(s) {
        return String(s == null ? '' : s)
            .replace(/&/g, '&')
            .replace(/</g, '&lt;')
            .replace(/>/g, '&gt;')
            .replace(/"/g, '&quot;');
    }

    function fmt(n) {
        return Number(n || 0).toLocaleString();
    }

    function buildQuery() {
        return {
            q: CONFIG.query.q,
            from: state.rangeFrom || CONFIG.time.defaultFrom,
            until: CONFIG.query.until
        };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…