fixing <a> tags mangled by xmls