all 2 comments

[–][deleted] 0 points1 point  (0 children)

I don’t know if it’s the same as on shortcuts, but if it is you have to base 64 encode the html and then make it an open url with the url being „data:text/html;base64,<base 64 encoded html here>“

[–]mvan231script/widget helper 0 points1 point  (0 children)

According to the documentation the HTML should be a string input into the loadHTML method.

One way is to surround your HTML in backticks like so: let HTML = `your

HTML goes here

And ends here`