Pergunta

I am creating a Sharepoint 2010 site, and I am finding that after editing HTML in Sharepoint Designer, on saving some code is likely to be removed: "Content in the embedded form may be changed by the the server to remove unsafe content". This is typically where a tag references javascript, eg ... href="javascript:somefunction()" ... . The href disappears completely.

No doubt it has its reasons, but this is a closed system and I need the code there. How do I stop it?

Foi útil?

Solução

You can't stop that. If you really want to bypass that you'll have to come up with some workaround, like using jQuery to forcefully insert your "unsafe" content in the page.

EDIT: Someone has had the same problem as you in another question here in Stack Overflow. If you're using the wiki template, your answer may as well be there:

error in sharepoint 2010 designer while saving:"Content in the embedded form may be changed by the the server to remove unsafe content. "

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top