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]
Already in v5.0.0
5.8.0
attributeEncode(data)
From v5.8.0, this function encodes all instances in data of the following 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 OMPL work as paragraph breaks aren't allowed within XML attribute values.
An export code equivalent is ^opmlEncode()^