/** * Replaces all new line characters '\ n' with html tag '
'. * * @method nl2br * @global * * @example * ```javascript * bbn.fn.nl2br('hello \n world!'); * //"hello
world!" * ``` * @memberof bbn.fn * @param {Array!Object} st * @param {String} [clsName] * @returns {String} */ export default function data2Html(data: any, clsName?: string): string;