We have a SharePoint List with a multi-line text column. In this column we have HTML code. When I retrieve the column in an SPListItem, the url is often stripped from the string.

If the SharePoint site is at mysite.com then:

<IMG alt="my alt tag." src="http://mysite.com/PublishingImages/logo.gif">


<IMG alt="my alt tag." src="/PublishingImages/logo.gif">

Is there a way to prevent this?

1 Answer 1


I don't believe there is a way to stop this. This ensures that the URLs will be accessible regardless of the URL the user used to access the site. Since one site can have multiple addresses, any user will still see the same image regardless of site.

  • Thanks for your answer, and for helping me with the previous version of this question. o____O Commented Apr 23, 2013 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.