(Bug 5053) Fix some closing of A tags

Close all the A tags, even if there's no href. Don't allow the bold tag
to escape from its home.