mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 19:53:00 -05:00
Merge pull request #130 from pyscript/dedent_code
Fix dedenting of <py-script> code
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user