export type TGetStrEscapedArgs = Parameters; export type TGetStrEscapedReturn = ReturnType; /** * Escapes special HTML characters to their corresponding entities. * Escaped: `& < > " '` * @param {string} str Source string * @returns {string} Escaped string safe for HTML text context * @throws {TypeError} If str is not a string * @example * getStrEscaped('Hello & "world"'); * // => "<b>Hello & "world"</b>" * @example * // Escape user-generated text before inserting it into an HTML template * const safeComment = `

${getStrEscaped(comment.text)}

`; */ export declare const getStrEscaped: (str: string) => string;