Click here to Skip to main content
15,902,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi friends this is my string

i need to decode the string

"pbProperty Locationb br When you stay at Dunes Hotel Apartments in Dubai you&aposll be near the airport and close to Al Twar Center and Sahara Centre. This aparthotel is within the vicinity of Al Qasba and Sharjah CA Stadium.ppbRoomsb br Make yourself at home in one of the 73 air-conditioned rooms featuring kitchens with refrigerators and microwaves. DVD players and satellite programming are available for your entertainment while CD players help you enjoy your music in the comfort of your room. Conveniences include safes and complimentary newspapers as well as phones with free local calls.ppbRec Spa Premium Amenitiesb br Take advantage of recreational opportunities offered including a health club an outdoor pool and a steam room. Additional features include wireless Internet access (surcharge) a hair salon and shopping on site.ppbDiningb br Grab a bite from a snack bardeli or stay in and take advantage of the aparthotel&aposs room service (during limited hours).ppbBusiness Other Amenitiesb br Featured amenities include a business center limotown car service and currency exchange. A roundtrip airport shuttle is provided for a surcharge and free parking is available onsite.pbrbrCheck In - 200 PM Check Out - 1200 PM"

as You can see pb , apos , br without tags

how can i remove it and render perfectly

i tried Html.Raw() ... but i cant able to remove this pb , br , apos
Posted
Updated 1-Apr-14 20:58pm
v2
Comments
TorstenH. 2-Apr-14 2:59am    
Accidentally posted a solution for Java. Might be cause by confusion of OP.

I guess your string is missing the &lt;(for <) and &gt;(for >). Because for decoding the string these raw representations are required. For eg. "&lt;b&gt;" would be decoded to "<b>".
 
Share this answer
 
Comments
sreerajcaxita 4-Apr-14 1:25am    
i know i am missing the tag portion ..... i am asking is there any option or solution to remove this kind of unwanted characters

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900