AjaxControlToolkit.Reference.Core.Rendering.CodePlexDocRenderer.Sanitize C# (CSharp) Method

Sanitize() public method

public Sanitize ( string text ) : string
text string
return string
        public string Sanitize(string text)
        {
            if(String.IsNullOrWhiteSpace(text))
                return String.Empty;

            return text
                .Replace("*", "{\"*\"}")
                .Replace("_", "{\"_\"}")
                .Replace("+", "{\"+\"}")
                .Replace("!", "{\"!\"}")
                .Replace("#", "{\"#\"}");
        }