Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Altered:
Function [other Function type actions]
Item [operators of similar scope]
Formatting [other Formatting operators]
Baseline
attributeEncode(data)
This function encodes all instances of the following in the argument string data to numeric HTML entities (e.g. like ' '):
- left angle bracket
- right angle bracket
- ampersand
- (straight) double quote
- (straight) apostrophe
- line feed character (ASCII #10). This assists with OPML work as paragraph breaks are not allowed within XML attribute values.
An older export code equivalent was ^opmlEncode()^; the latter is deprecated in favour of the form ^value(attributeEncode(…))^.