wsp-10319 User notes do not render html code

This commit is contained in:
dev_amdtel 2015-02-24 05:29:51 +04:00
parent 3c97421fee
commit 50e61dbfdf

View file

@ -125,7 +125,7 @@ namespace WebsitePanel.Portal
public string WrapComment(string text)
{
return (text != null) ? PortalAntiXSS.EncodeOld(text.Replace("\n", "<br/>")) : text;
return (text != null) ? Server.HtmlEncode(text).Replace("\n", "<br/>") : text;
}
protected void gvComments_RowDeleting(object sender, GridViewDeleteEventArgs e)