1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 16:45:16 +00:00

Can create conversations

This commit is contained in:
2019-11-30 10:11:51 +01:00
parent b6739473a2
commit 3db123cd1e
7 changed files with 134 additions and 6 deletions

View File

@ -21,4 +21,14 @@ export function checkMail(emailAddress: string): boolean {
*/
export function fixEncoding(input : string) : string {
return Buffer.from(input, "latin1").toString("utf-8");
}
/**
* Remove HTML markup codes in a string (<, >)
*
* @param input String to change
*/
export function removeHTMLNodes(input : string) : string {
return input.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
}