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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -