C# Class YANFOE.Tools.Clean.Text

Text Cleaning methods.
Show file Open project: yanfoe/YANFOE.v2

Public Methods

Method Description
FullClean ( string text ) : string

Applies both RemoveHtml and ValidizeResult on a string, along with removing all \r\n new line codes

RemoveHtml ( string text ) : string

Removes all html tags from within a string and all double (or more) spaces.

UrlEncode ( string text ) : string

Url-encodes a string and returns the encoded string.

ValidizeResult ( string text ) : string

Replace HTML special character codes with UTF characters.

Method Details

FullClean() public static method

Applies both RemoveHtml and ValidizeResult on a string, along with removing all \r\n new line codes
public static FullClean ( string text ) : string
text string Input string.
return string

RemoveHtml() public static method

Removes all html tags from within a string and all double (or more) spaces.
public static RemoveHtml ( string text ) : string
text string The string for which all all HTML tags will be removed.
return string

UrlEncode() public static method

Url-encodes a string and returns the encoded string.
public static UrlEncode ( string text ) : string
text string The text string to encode.
return string

ValidizeResult() public static method

Replace HTML special character codes with UTF characters.
public static ValidizeResult ( string text ) : string
text string String for which replacements will be made.
return string