modify type text/html check in ExtractLinks