Tags down


Preserve carriage return when using XDocument.Parse

By : user3851009
Date : October 18 2020, 11:12 AM
will be helpful for those in need Passing LoadOptions.PreserveWhitespace to XDocument.Parse is supposed to preserve insignificant whitespace from but from the community content at the bottom it appears not to be the case.
Can you load into the XDocument using an XmlReader instead? That may offer much more flexibility.
code :

Share : facebook icon twitter icon

MVC Preserve carriage return - line feed in html

By : Rahul
Date : March 29 2020, 07:55 AM
This might help you I think the best way to do that is to replace the \r\n sequence with
tags, using whatever scripting language your database-backed website is in.
Other options include placing the text within a