Fix HTML escaping to account for multi-line regex.