Answer the question
In order to leave comments, you need to log in
Write formatted text to database with output?
ASP.NET Core MVC
Enter text at intervals and paragraphs in the text field, you need to write it to the database so that the formatting is preserved (indents, paragraphs).
Tell me how to do or where is the article?
Answer the question
In order to leave comments, you need to log in
private static String FormatOutput(string inStr)
{
return inStr.Replace("\n","<br/>").Replace(" "," ");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question