Declaration:
<? class HTMLShowHtml extends HTMLTag ?>
Description:
This tag allows you to display variables that contain markup which you don't want to get escaped. Normally, when you
display variable contents in a template with {%varName} notation, content of that variable is passed through
htmlSpecialChars() function. If, however, that variable contains HTML that you do want to display, you can
use this tag like:
<?
... <HTMLShowHtml key="varName" /> ... ?>
Please note, however, that if the variable contains invalid HTML, the validity of the resulting document can change.
Parent Classes:
SDNode
,
SDElement
,
HTMLTag
Authors:
Methods:
-
onInit()
Override this method to do some initializing here. This method is
called by HTMLTag constructor and is a convenience method that
allows bypass constructor override. This is the ideal place to
set exposed/enabled properties. This method is called once per
tag lifetime, at the moment of tag constructor is called so
the tag cannot make any assumptions of its children nodes.
-
onOpen()
Override this to take some action (possibly modify own children state and
own attributes) and
decide whether to process the body. Please note that this method
can be called multiple times on the same instance if the tag is repeated
with the body of parent tag.
|
|