.pragma library /** * Wrap text in a nicely styled HTML container for display * @param {string} text - The text to display * @returns {string} HTML string */ function wrapTextForDisplay(text) { // Escape HTML special characters const escapeHtml = (s) => s.replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """) .replace(/'/g, "'"); return `