Fix HTML escaping and link extraction