Note that there are some explanatory texts on larger screens.

plurals
  1. POgetting html tags from xml and echoing in php?
    primarykey
    data
    text
    <p>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:</p> <pre><code>&lt;areaInformation&gt; Distances are calculated in a straight line from the property&amp;apos;s location to the point of interest or attraction, and may not reflect actual travel distance. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt; Distances are displayed to the nearest 0.1 mile and kilometre. &amp;lt;p&amp;gt;La Isla Shopping Mall - 0.5 km / 0.3 mi &amp;lt;br /&amp;gt;Yamil Lu&amp;apos;um - 0.5 km / 0.3 mi &amp;lt;br /&amp;gt;Acuario Interactivo - 0.6 km / 0.3 mi &amp;lt;br /&amp;gt;Luxury Avenue - 1.5 km / 0.9 mi &amp;lt;br /&amp;gt;Cancun Golf Club at Pok Ta Pok - 2.2 km / 1.3 mi &amp;lt;br /&amp;gt;Nautilus Diving and Training Center - 2.6 km / 1.6 mi &amp;lt;br /&amp;gt;Cancun Convention Center - 2.8 km / 1.7 mi &amp;lt;br /&amp;gt;Plaza Caracol - 2.8 km / 1.8 mi &amp;lt;br /&amp;gt;Playa Tortuga - 3.1 km / 1.9 mi &amp;lt;br /&amp;gt;Aquaworld - 3.6 km / 2.2 mi &amp;lt;br /&amp;gt;Playa Langosta - 4.1 km / 2.6 mi &amp;lt;br /&amp;gt;Museo de Arte Popular Mexicano - 4.6 km / 2.9 mi &amp;lt;br /&amp;gt;Playa Linda - 5 km / 3.1 mi &amp;lt;br /&amp;gt;Playa Delfines - 6.1 km / 3.8 mi &amp;lt;br /&amp;gt;El Rey Ruins - 6.2 km / 3.8 mi &amp;lt;br /&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The preferred airport for ME Cancun - Complete ME All Inclusive is Cancun, Quintana Roo (CUN-Cancun Intl.) - 14.3 km / 8.9 mi. &amp;lt;/p&amp;gt; &lt;/areaInformation&gt; </code></pre> <p>And I echo it in php:</p> <pre><code>&lt;div id="hotelInfo"&gt;&lt;?php echo $areaInfo ?&gt;&lt;/div&gt; </code></pre> <p>And of course I get this in the browser window: </p> <pre><code>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. &lt;br /&gt;&lt;br /&gt; Distances are displayed to the nearest 0.1 mile and kilometre. &lt;p&gt;La Isla Shopping Mall - 0.5 km / 0.3 mi &lt;br /&gt;Yamil Lu'um - 0.5 km / 0.3 mi &lt;br /&gt;Acuario Interac </code></pre> <p>etc.</p> <p>How can I fix this??? Any help would be greatly apreciated! Thanks! I want it to output normal text without any html tags.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload