getting html tags from xml and echoing in php?
        Posted  
        
            by 
                Whitney Sarah Rogers
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Whitney Sarah Rogers
        
        
        
        Published on 2012-03-18T17:30:22Z
        Indexed on 
            2012/03/18
            17:56 UTC
        
        
        Read the original article
        Hit count: 245
        
I am trying to echo a result from xml into my html code form expedia. But I ran into a problem. There text is a little messed up:
<areaInformation>
Distances are calculated in a straight line from the property's location to the point of interest or attraction, and may not reflect actual travel distance. <br /><br /> Distances are displayed to the nearest 0.1 mile and kilometre. <p>La Isla Shopping Mall - 0.5 km / 0.3 mi <br />Yamil Lu'um - 0.5 km / 0.3 mi <br />Acuario Interactivo - 0.6 km / 0.3 mi <br />Luxury Avenue - 1.5 km / 0.9 mi <br />Cancun Golf Club at Pok Ta Pok - 2.2 km / 1.3 mi <br />Nautilus Diving and Training Center - 2.6 km / 1.6 mi <br />Cancun Convention Center - 2.8 km / 1.7 mi <br />Plaza Caracol - 2.8 km / 1.8 mi <br />Playa Tortuga - 3.1 km / 1.9 mi <br />Aquaworld - 3.6 km / 2.2 mi <br />Playa Langosta - 4.1 km / 2.6 mi <br />Museo de Arte Popular Mexicano - 4.6 km / 2.9 mi <br />Playa Linda - 5 km / 3.1 mi <br />Playa Delfines - 6.1 km / 3.8 mi <br />El Rey Ruins - 6.2 km / 3.8 mi <br /></p><p>The preferred airport for ME Cancun - Complete ME All Inclusive is Cancun, Quintana Roo (CUN-Cancun Intl.) - 14.3 km / 8.9 mi. </p>
</areaInformation>
And I echo it in php:
<div id="hotelInfo"><?php echo $areaInfo ?></div>
And of course I get this in the browser window:
Distances are calculated in a straight line from the property's location to the point of interest or attraction, and may not reflect actual travel distance. <br /><br /> Distances are displayed to the nearest 0.1 mile and kilometre. <p>La Isla Shopping Mall - 0.5 km / 0.3 mi <br />Yamil Lu'um - 0.5 km / 0.3 mi <br />Acuario Interac
etc.
How can I fix this??? Any help would be greatly apreciated! Thanks!
© Stack Overflow or respective owner