fix looking for `<a>` and `<link>` tags