script to strip out external link includes