encodeattribute()

 
Returns a copy of string (which is usually a URI or part of an URI ) in URI-encoded format. Special characters such as space, tilde (~), and the plus sign are converted to hexadecimal %nn format. This function is the opposite of decodeattribute.
Syntax
encodeattribute( attribute )
Returns a URI encoded string
User Annotations: encodeattribute