z_html: fixes and simplification of escape_props and escape_props_check.