escape = (line) -> line .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>')
Purpose: Escapes special HTML characters (&, <, and >) in a line of text to prevent issues when rendering in HTML.
Usage: This function is called to safely display user input or other text that will be rendered as HTML, avoiding potential security risks like XSS (Cross-Site Scripting).