Greatly improved HTML/<code> escaping/unescaping thanks to Lea Albaugh