Sanitizing the Rich Text Editor
This section describes how to sanitize the Rich Text Editor serverside
Implementing your own IHtmlSanitizer
using Umbraco.Cms.Core.Security;
namespace MySite.HtmlSanitization;
public class MyHtmlSanitizer : IHtmlSanitizer
{
public string Sanitize(string html)
{
// Sanitize the html parameter here
return "<h1>Sanitized HTML</h1>";
}
}Last updated
Was this helpful?