Foros‎ > ‎Sharepoint‎ > ‎

Remove invalid Characters from search results - Sharepoint 2013

publicado a la‎(s)‎ 28 ene. 2016 11:53 por Ignacio Gonzalez
Open the display template with sharepoint designer in "Master Pages > Display Templates > Item_Site.html "


Modify it adding the following Script:

<!--#_
ctx.OnPostRender = function() {

 var textValue = document.getElementById('Groups');

   if (textValue != null)
   {
   
    textValue.innerHTML = textValue.innerHTML.replace( /’/g,'´').replace( /€/g,'').replace( /‹/g,'').replace( /â/g,'');
    
   }

};
_#-->
Comments