How do I strip the href tag from SMS file links?

I have an SMS being sent when I add a new order that also contains a link to a file field. A PDF packing slip. How do I strip the href / target / download tag so it’s just the file location?