c# - Split the string and bring it to new line if string contains "<br>" and the string values are retrieved from a single column of a database -
split string , bring new line if string contains "
" , string values retrieved single column of database using linqdatasource. eg: if string in column is... 1) address 1: addess1 < br> 2) address 2: addres2
the required output :
1) address 1: addess1
2) address 2: addres2
you use replace function.
text.replace("<br>", "\n");
this replace break-line new-line. therefore wouldn't need split command.
Comments
Post a Comment