Remove harmful html entities encoding and other style nits

React will take care of this for us. It's harmful because simple characters get converted to something illegible.
This commit is contained in:
Travis Ralston
2020-01-06 12:21:59 -07:00
parent 8b4c1e3dec
commit bef824e84e
2 changed files with 4 additions and 13 deletions

View File

@@ -528,8 +528,3 @@ export function checkBlockNode(node) {
return false;
}
}
export function htmlEntitiesEncode(str: string) {
// Source: https://stackoverflow.com/a/18750001/7037379
return str.replace(/[\u00A0-\u9999<>&]/gim, i => `&#${i.charCodeAt(0)};`);
}