Add "\n\r" to match

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
Gregoire Parant 2021-08-23 09:43:43 +02:00
parent da00fa7868
commit 8c4ead8421

View File

@ -28,7 +28,7 @@ export class HtmlUtils {
public static escapeHtml(html: string): string {
let innerHTML = "";
const tabBackLine = html.match(/(\r\n|\r|\n)/g);
const tabBackLine = html.match(/(\n\r|\r\n|\r|\n)/g);
for (const text in blackListManager) {
const p = document.createElement("p");
p.appendChild(document.createTextNode(text));