From e62d8db050a7057766d548100ff9c06eed336335 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 3 May 2022 00:55:55 +0200 Subject: [PATCH] Fix dedenting of code --- pyscriptjs/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyscriptjs/src/utils.ts b/pyscriptjs/src/utils.ts index 68733968882..4f23e3329ad 100644 --- a/pyscriptjs/src/utils.ts +++ b/pyscriptjs/src/utils.ts @@ -9,8 +9,8 @@ const getLastPath = function (str) { }; function htmlDecode(input) { - const doc = new DOMParser().parseFromString(input, 'text/html'); - return ltrim(doc.documentElement.textContent); + const doc = new DOMParser().parseFromString(ltrim(input), 'text/html'); + return doc.documentElement.textContent; } function ltrim(code: string): string {