ember-fastboot / ember-fastboot/ember-cli-head

Escaping HTML characters in fastboot

Open
#67 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
97
Forks
35
Avg merge
3h 3m
Merged PRs (30d)
6

Description

In the browser I'd do something like:

```js
export default function htmlDecode(input) {
let doc = new DOMParser().parseFromString(input, 'text/html');
return doc.documentElement.textContent;
}
```

and escape the opengraph text, but the `DOMParser` is not available in fastboot, what to do?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.