ember-fastboot / ember-fastboot/ember-cli-head
Escaping HTML characters in fastboot
Open
- 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
Assessment
This issue has not been assessed yet.