Sanitizer.GetSafeHtmlFragment Stripping Line Breaks?

Jan 20, 2011 at 7: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 5:38 AM

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

Coordinator
Jan 21, 2011 at 5:41 AM

I'm afraid it can't.

Dec 22, 2011 at 7: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.