Partially fixed bug where HTML escaping occurred too early. Bug still exists where HTML attributes are being "quoted".