Sanitizer.GetSafeHtmlFragment Stripping Line Breaks?

Jan 20, 2011 at 8:15 AM

Is there anyway to stop Sanitizer.GetSafeHtmlFragment stripping out the line breaks?  I am using it on a textarea and need the line breaks left in, or all I get is just a huge block of text back?

Jan 21, 2011 at 6:38 AM

Anyone?  Or can't it be done? :(

Jan 21, 2011 at 6:41 AM

I'm afraid it can't.

Dec 22, 2011 at 8:48 PM

Its unfortunate it can't.  What I've found is it finds <br /> not save and replaces it with the not standard <br> tag.