Bug reports
Version 3.x > Bug reports > CMS.GlobalHelper.HTMLHelper.StripTags View modes: 
User avatar
Member
Member
ken.walpurgis-atalasoft - 12/5/2008 3:10:28 PM
   
CMS.GlobalHelper.HTMLHelper.StripTags
CMS.GlobalHelper.HTMLHelper.StripTags works great when stripping html tags but it leaves the ampersand when trying to strip encoded values( ,&ndash).

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 1/13/2009 8:01:50 AM
   
RE:CMS.GlobalHelper.HTMLHelper.StripTags
Hello,

This is by-design behavior intended for internal purposes. In version 4.0 you will be able to choose if you want HTML entities to be replaced. Anyway, you could call HttpServerUtility.HtmlDecode function (that replaces entities with values they represent) before calling CMS.GlobalHelper.HTMLHelper.StripTags function.

Best Regards,

Martin Dobsicek