AODL.Document.Content.Tables.RowHeader.HtmlCleaner C# (CSharp) Method

HtmlCleaner() private method

Table row header cleaner, this is needed, because in OD, the style of the table header row is used for to and bottom margin, but some brother use this from the text inside the cells. Which result in to large height settings.
private HtmlCleaner ( string text ) : string
text string The text.
return string
		private string HtmlCleaner(string text)
		{
			string pat = @"margin-top: \d\.\d\d\w\w;";
			string pat1 = @"margin-bottom: \d\.\d\d\w\w;";
			Regex r = new Regex(pat, RegexOptions.IgnoreCase);
			text = r.Replace(text, "");
			r = new Regex(pat1, RegexOptions.IgnoreCase);
			text = r.Replace(text, "");
			return text;
		}