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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -