Fix HREF tags in table in spefici column
I have a web page where a third party application "SharePoint" is broken file urls.
If I have a file url like this \\jquery.com\folders\test folder\doc1.doc
The application will add an href tag and the html will come out like this
- <tr>
- <td>
- <a href="\\jquery.com\folders\test">\\jquery.com\folders\test</a> folder\doc1.doc
- </td>
- </tr>
For all these messed up links "\\jquery.com\folders\test folder" will always be part of the link.
First there is no way to change the program from the backend to keep it from displaying like that, so i think i need to use jquery to fix it.
So my questions are
1. how can I locate all TD that contains the text \\jquery.com\folders\test
2. Once I locate the TD's is there an easy way in jquery to transform
- <a href="\\jquery.com\folders\test">\\jquery.com\folders\test</a> folder\doc1.doc
To
- <a href="\\jquery.com\folders\test folder\doc1.doc">\\jquery.com\folders\test folder\doc1.doc</a>