I have created a page in SharePoint 2010 and in the Title field it reads 'Faculty & Staff'. However, when I view the page in the browser it displays 'Faculty %26Staff'. I have tried different ways to escape the ampersand including using the HTML code for it and adding a second ampersand next to it. Nothing seems to work. Does anyone know how to escape it in the title? Thank you, David!
|
|
I actually found the answer here: http://onlinecoder.blogspot.com/2012/05/special-characters-in-sharepoint-top.html You need to find the following block of code in your masterpage:
and add |
|||
|
|
It looks like this is a bug that was fixed in an post-RTM update. So the real solution would be to install Service Pack 1 (or later, if available). I stumbled upon this issue on a client's farm. They weren't yet ready to install the Service Pack and the 'EncodeTitle' solution didn't work for me. So I fixed it by including the following piece of Javascript (also using jQuery). Warning: It's a specific fix for a specific encoding issue they experienced. You may have to adapt the search pattern and replacement string to your specific situation.
|
|||
|
|