Instruction set reference
HIPE_OP_APPEND_TEXT
Appends a text element as the last child element within the specified tag element.
- location: The proud parent element.
- arg[0]: A string of text to append. HTML-style special character entities may be used.
- arg[1]: If "1" is passed, Hipe will convert newline characters in arg[0] into HTML line breaks, carriage returns into empty paragraph tags, and tab characters into HTML tab character entities, in order to preserve such formatting. Otherwise, Hipe will append the text without modifying these characters. Most HTML tags (excepting the 'pre' tag) will consolidate tabs, newlines, etc. into a single space according to the HTML standard.
Notes
There is no need to worry about sanitising such things as HTML tags from the text in arg[0]. The text will be copied into the tag literally, and will not be interpreted as HTML code.