Encode HTML
XML
<encode:html var="var">
string
</encode:html>
<encode:html /> encodes a value by converting special reserved characters to their applicable HTML entites and whitespace characters to a meaningful HTML representation.
<encode:html /> is compatible to the <decode:html /> operation, but not the complement thereof.
Attention:
The characters mentioned above have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings.
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Result variable name | encode:html |
Results
| Binding | Type | Predicate |
|---|---|---|
| var | string | N/A |
Examples
XML
<output>
<encode:html>Hello World!&n;My name is "iXML" & I am a XML derivative!</encode:html>
</output>
<!-- Hello World!<br />My name is "iXML" & I am a XML derivative! -->