Institutionalized the unsafe html checker.  Now causes an assertion to fail and
shows where the faulty html is to make it easy to locate and fix.