//----------------------------------------------------------------------- // // Company copyright tag. // // stubbfel // 06.06.2013 //---------------------------------------------------------------------- namespace CampusAppWPortalLib8.Utility { using System.Text.RegularExpressions; /// /// Class provides some special StringMethods /// public static class StringManager { #region Members /// /// Patter for Html-Tags /// private static readonly string HtmlTagPattern = "<.*?>"; #endregion #region Methods /// /// Method removes Html-Tag of a String /// /// String with Html-Tags /// String without Html-Tags public static string StripHTML(string inputString) { return Regex.Replace(inputString, HtmlTagPattern, string.Empty); } /// /// Method add an Newline to a string /// /// input string /// input string + newline public static string AddNewLine(string str) { return str.ToString() + "\n"; } /// /// Method remove(TrimEND!) an Newline to a string /// /// input string /// input string - newline