encodeForXPath

Encodes the input string for safe output in the body of a HTML tag.

Method Signature

encodeForXPath(string=[string], canonicalize=[boolean])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to encode.

canonicalize

boolean

true

Whether to canonicalize the string before encoding.

false

Examples

Last updated

Was this helpful?