JSFiddle - React, Tailwind, and code Playground
by Geo George
JavaScript
function ConvChar( str ) {
c = {'<':'<', '>':'>', '&':'&', '"':'"', "'":''',
'#':'#' };
return str.replace( /[<&>'"#]/g, function(s) { return c[s]; } );
}
alert(ConvChar("WOMEN&#039;S EMPOWERMENT"))