Encodes specified data into a valid attribute value. Xml tags are removed and quotes are encoded.

Syntax

Smartsite SXML CopyCode image Copy Code
string string.encodeattribute(string data)
string string.encodeattribute(string data, boolean removeTags)

Parameters

Name Data Type Description
data String The data.
removeTags Boolean If set to true [remove tags].

Return Value

Data Type Description
String

Expand image Example

SXML