C# Class YANFOE.Tools.Clean.Text

Text Cleaning methods.
Afficher le fichier Open project: yanfoe/YANFOE.v2

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

RemoveHtml() public static méthode

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.
Résultat string

UrlEncode() public static méthode

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

ValidizeResult() public static méthode

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