I\'m trying to fetch a file and return it\'s HTML. However it\'s not as simple as I\'d have imagined.
fetch(\'/path/to/file\') .then(function (respon
You need to use the .text() method, instead of .json(). This converts the byte stream into plain text, which can be parsed by the browser as HTML.
.text()
.json()