#cp.web.html
Functions for Generating HTML markup.
This library allows the creation of 'safe' HTML using via code.
Examples:
Be aware that concatonating with ".." can behave unexpectedly in some cases. For example:
The "Hello"
gets inserted into the p
tag, but the name
gets concatonated after the closing tag. To get the name
inside the p
tag, we need to put brackets around the content:
Any tag name can be generated, along with any attribute. The results are correctly escaped. There are two 'special' tag names:
CDATA
- will generate a<![CDATA[ ... ]]>
section with the content contained.__
- (double underscore) will generate a<!-- ... -->
comment block.
#API Overview
Functions - API calls offered directly by the extension
Methods - API calls which can only be made on an object returned by a constructor