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:
@@ -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)};`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user