Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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">

becomes

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

Is there a way to prevent this?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
    
Thanks for your answer, and for helping me with the previous version of this question. o____O –  Jonathan Matthew Beck Apr 23 '13 at 20:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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