Arbortext Command Language > Functions by Alphabetical Listing > entity_expand
  
entity_expand
entity_expand (value[, flags[, doc]])
This function expands character and text entity references in the given value string and returns the expanded string.
value is the value to be expanded
flag is a bitmask that controls the expansion of the entity:
0x01 — expand character entity references
0x02 — expand text entity references
If omitted, the default is to expand all types of entity references.
doc is the document which defines the entities. If omitted, the current document is used.
In XML the < and & characters must be escaped inside an attribute value; for example, in an attribute value, the string A<B&C>D should be encoded as A&lt;&amp;C.D.
To get the expanded value of the src attribute on the tag containing the caret:
local expandedValue = entity_expand( oid_attr( oid_caret(), 'src' ) )