diff --git a/src/utils/format-utils.ts b/src/utils/format-utils.ts index aa543e7..a8beee3 100644 --- a/src/utils/format-utils.ts +++ b/src/utils/format-utils.ts @@ -37,4 +37,14 @@ export class FormatUtils { return str.replace(/\w\S*/g, s => s.charAt(0).toUpperCase() + s.substr(1).toLowerCase()) } + + /** + * Parse html text + * + * @param str + */ + public static parseText(str: string): string + { + return str.replace(/&/g, '&'); + } }