Tech
Stop Wiring Quill by Hand: RazorRichText for ASP.NET Core
Adding a rich text box to an ASP.NET Core app usually means three separate jobs: embed Quill, keep the HTML out of XSS trouble, and teach model validation that <p><br></p> is empty. RazorRichText is a MIT-licensed NuGet package that does those jobs for you.
You bind a string with asp-for . On POST you get sanitised HTML. The editor itself is a tag helper, so the view stays markup.
dotnet add package RazorRichText
It targets ASP.NET Core on .NET 10 and ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to