Appears to fix nested <a> problem, but it may render the link unclickable. Needs further testing.