filter dirty html only at beginning
don't use data- for creating relative links. Manipulate each <a> directly