Esempio n. 1
0
 /// <summary>
 /// Returns a plain text version of the HTML body, suitable for sending in an email.
 /// Note: this is a bit slow if doing hundreds of times, eg sending a newsletter, so don't do it within the loop
 /// TODO - needs to add links etc (as per classic ASP version)
 /// </summary>
 /// <param name="htmlBody"></param>
 public static string GeneratePlainTextVersion(string htmlBody)
 {
     return(Fmt.StripTagsComplete(htmlBody));
 }