I am using REST api to get data form a list. The only thing tripping me up is a hyperlink column containing a link to a word document in a library. The data is being returned like so:
https://sharepoint/site/DocLibrary/Document.docx,%20Project%20Definition
I need just the URL but rest is returning the display text also, noted by the comma and text following it on the end of the URL:
,%20Project%20Definition
I am trying to inject the URL into a anchor but the display text value is messing it up. I know I can parse the URL and remove the comma and following text but was hoping I wouldn't have to hard code it, especially since someone could put a comma in the document name.