[+] Create method to parse html text

This commit is contained in:
Hykilpikonna
2019-11-02 20:37:41 -04:00
parent e60a4669ac
commit 085812d859
+10
View File
@@ -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, '&');
}
}