Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. This function returns a string with some of these conversions made.
The translations performed are:
- '&' (ampersand) becomes '&'
- '"' (double quote) becomes '"'
- ''' (single quote) becomes '''
- '<' (less than) becomes '<'
- '>' (greater than) becomes '>'
As an example, the following snippet has been taken from Core Concepts - RSS Feeds, where we are are supplyig the feed with HTML encoded excerpt of our pages -
<cms:html_encode> <cms:excerptHTML><cms:show my_news_text /></cms:excerptHTML> </cms:html_encode>
This tag does not accept any parameters. Everything enclosed within its opening and closing tags is considered as its input.
This tag does not set any variables.