When fetching data, the description is in HTML5 as a string.
I want to parse that as text/html.
So, I did something like this:
---
const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json())
const parser = new DOMParser()
const Description = video.description
const DescriptionFormat = parser.parseFromString(Description, 'text/html')
---
Then, once I add {DescriptionFormat} to the page, the following error is shown:
01:03:00 [ERROR] DOMParser is not defined
Stack trace:
at /run/media/korbs/Framework/Development/MinPluto/MinPluto/src/pages/watch.astro:18:16
[...] See full stack trace in the browser, or rerun with --verbose.