SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've implemented a custom ribbon button/dialog to insert a link to a document contained in a third party DMS. The DMS client installs a protocol handler that allows the use of links such as the following -


Unfortunately, upon saving the page, the above URL is stripped out and I'm left with an empty A tag.

Is it possible to either disable the SP2010 RTE validation, or escape the above URL somehow to prevent the A tag being sanitized?

share|improve this question
up vote 1 down vote accepted

I ended up going with an alternative approach. I added an .aspx page to my package, and had the RTE inserted link pass the relevant parameters over to the new page. Then, the .aspx page regenerated the original URL and handled it accordingly.

share|improve this answer
Please mark this as the accepted answer, to show the question as resolved. – Stuart Pegg May 24 '11 at 21:32
There's a waiting period to accept your own answers, I was planning to do so once it has elapsed. – simonjs May 25 '11 at 8:12
Fair enough. I jumped the gun obviously. :) – Stuart Pegg May 25 '11 at 8:18

Use the ContentEditorWebPart. Your url won't be stripped out. This approach is also used when trying to add javascript to a web page.

share|improve this answer
Thanks, but unfortunately (in this case) there's a requirement to have this functionality available in RTE's outside of web parts. – simonjs May 24 '11 at 14:39

Your Answer


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.