safely-set-inner-html
safely-set-inner-html copied to clipboard
Keep calm and don't use dangerouslySetInnerHTML anymore
I cannot use the library in my SSR because the built files require a `window` variable. ``` /Users/sbstjn/Workspace/src/ … /node_modules/safely-set-inner-html/dist/safelySetInnerHTML.js:10 })(window, function(__WEBPACK_EXTERNAL_MODULE_himalaya__, __WEBPACK_EXTERNAL_MODULE_react__) { ^ ReferenceError: window is not defined...
- use [html-entities](https://github.com/mdevils/node-html-entities) lib fix #9
I'm using WP API currently, and the returned object gives you a post content with ascii encoded character `’`, yet when I pass it through transform, it still displays as...