UNPKG

qerrors

Version:

Intelligent error handling middleware with AI-powered analysis, environment validation, caching, and production-ready logging. Provides OpenAI-based error suggestions, queue management, retry mechanisms, and comprehensive configuration options for Node.js

10 lines (9 loc) 339 B
// minimal escape-html stub used for tests module.exports = function escapeHtml(str) { return String(str) .replace(/&/g, '&amp;') .replace(/</g, '&lt;') //escape < for safety .replace(/>/g, '&gt;') //escape > for safety .replace(/"/g, '&quot;') //escape " for safety .replace(/'/g, '&#39;'); //escape ' for safety };