Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Using new line( ) in string and rendering the same in HTML

<span style="white-space: pre-line">@Model.CommentText</span>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Using #string #rendering #HTML
ADD COMMENT
Topic
Name
8+2 =