I've given some HTML in the custom options of Magento, it is working perfectly fine on the product page however in the checkout page, it is showing with HTML code. When I checked the source code, the HTML tags has been converted to entities. For example, <span>
is showing like <span>
<dl class="item-options">
<?php foreach ($_options as $_option) : ?>
<?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
<dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
<?php if (isset($_formatedOptionValue['full_view'])): ?>
<div class="truncated_full_value">
<dl class="item-options">
<dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
<dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
</dl>
**
- Edit: Here is the ouput of HTML
<dl class="item-options"> <dt>Customize Your System:</dt> <dd class="truncated"><span id="evo-blue">Heading: <a href="#" class="dots" onclick="return false">...</a> <div class="truncated_full_value show"> <dl class="item-options"> <dt>Heading-2</dt> <dd><span id="evo-blue">Heading-3:</span> Some text..</dd> </dl> </div> </dd> </dl>
**
I'm thinking that $this->htmlEscape has something to do with this mess? Anyone knows how to solve this?