removed htmlawed for html5 and $GLOBALS consideration