Hardly.StringHelpers.ToHtmlSafePlainText C# (CSharp) Method

ToHtmlSafePlainText() public static method

public static ToHtmlSafePlainText ( this value ) : string
value this
return string
        public static string ToHtmlSafePlainText(this string value)
        {
            // TODO extend to cover all special chars, although this is enough for security
            return value?.Replace("<", "<wbr>&lt;").Replace(">", "><wbr>").Replace("=", "<wbr>=");
        }