Skip to content

Instantly share code, notes, and snippets.

@robertmclaws
robertmclaws / KendoMvcExtensions.cs
Last active March 2, 2016 07:52
Solution to allow Kendo.Mvc ClientTemplates on MVC4 when the AntiXssEncoder is enabled. Also works with any other MVC control experiencing an "Invalid Template" issue due to AntiXssEncoder.
using Kendo.Mvc.UI;
using System.Web;
using System.Web.Mvc;
using System.Web.Security.AntiXss;
using System.Web.Util;
namespace Your.Namespace.Here
{
public static class KendoMvcExtensions
{