mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 16:45:16 +00:00
Can create conversations
This commit is contained in:
@ -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, "<")
|
||||
.replace(/>/g, ">");
|
||||
}
|
Reference in New Issue
Block a user