can this code snippet be modified to reveal html coding?
<?php $_option = $this->getOption() ?>
<?php echo $this->htmlEscape($_option->getTitle()) ?>
it is showing a title but in that title i have an href:
<a href="http://link" target="otherwindow">link</a>
instead of it appearing as a link it just shows me the code. i'd like it to be a clickable link.
possible?
From stackoverflow
-
Yes, just remove the $this->htmlEscape() and leave the $_option->getTitle()
The escape function is to provide just the functionality of not being able to use (or inject) html commands or javascript.
0 comments:
Post a Comment