This project has moved. For the latest updates, please go here.
1

Closed

Please support Rich Text description fields

description

Observed behavior:
When printing tasks that contain a Rich Text description field, the rich text mark-up will be included in the task card printout (see attachment).

Expected behavior:
Remove rich text markup and print plain text
-OR-
Render rich text correctly.

file attachments

Closed Feb 26, 2014 at 5:21 PM by mrtn

comments

mrtn wrote Feb 25, 2014 at 4:54 PM

Thanks for reporting this bug. The next version will include a fix for this. /mrtn

Solution:
public static string StripTagsRegex(string source)
{
var decodedHtml = HttpUtility.HtmlDecode(source);
return Regex.Replace(decodedHtml, @"<[^>]+>| ", "");
}

wrote Feb 26, 2014 at 5:21 PM

Resolved with changeset 32204: 1) Move HtmlRemoval to a seperate class
2) Improve StripTagsRegex

wrote Feb 26, 2014 at 5:28 PM

Associated with changeset 32205: Remove unwanted ' '

mrtn wrote Feb 26, 2014 at 5:43 PM

I would appreciate if you made a short review (here: https://taskcardcreator.codeplex.com/releases)