encodeattribute()

 
Returns a copy of string (which is usually a URL or part of an URL) in URL-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 )
User Annotations: encodeattribute