UNPKG

mr-excel

Version:

A versatile JavaScript library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.

7 lines (6 loc) 168 B
export const specialCharacterConverter = function (str: string) { return str .replace(/\&/g, "&amp;") .replace(/\</g, "&lt;") .replace(/\>/g, "&gt;"); };