remove break from html string when value in html string is blank?

Posted by Divs99 under C# on 7/31/2012 | Points: 10 | Views : 1231 | Status : [Member] | Replies : 0
i have html string in the below way


<p>[[customer.Name1]]<br />[[customer.Name2]]&nbsp;<br />[[customer.Address1]]&nbsp;<br />[[customer.Address2]]<br/>[[customer.City]],&nbsp;[[customer.State]]</p>

iam getting value in html string in below way


<p>XYZ<br />&nbsp;<br />NC ROAD&nbsp;<br /><br />LOS ANGELES,&nbsp;TX</p>--

In the above html string some values are blank like [[customer.Name2]] is blank here and also [[customer.Address2]] is balnk here..... in tht case i want to remove break

actual result
XYZ

NC ROAD

LOS ANGELES,TX


I WANT THE RESULT IN THE BELOW WAY ..PLS HELP ME OUT.....


EXPECTED RESULT

XYZ
NC ROAD
LOS ANGELES,TX




Responses

(No response found.)

Login to post response