Add logic to strip URLs from reference content