SyntaxFix
Write A Post
Hire A Developer
Questions
I know its too late but this solution is working perfect for both .net framework and .net core:
@System.Web.HttpUtility.JavaScriptStringEncode()