I use the below C # script to remove HTML tags from the description column when working in SSIS. I tried adding the following unicode & # 58 to the htmlTagPattern line below, but I can't get it to work.
Any help is appreciated.
public class ScriptMain : UserComponent
{
public override void Input0_ProcessInputRow(Input0Buffer Row)
{
Row.Message = RemoveHtml(Row.Message);
}
public String RemoveHtml(String message)
{
String htmlTagPattern = "<(.|\n)+?>";
Regex objRegExp = new Regex(htmlTagPattern);
message = objRegExp.Replace(message, String.Empty);
return message;
}
}
source
share