EncodeSpecialChars Function

Description:

This function returns a character string after converting characters into their HTML entity references as described in RFC 1866.

eg:

    & is converted to &
    < is converted to &lt;
    > is converted to &gt;

Format:

result = EncodeSpecialChars(input_string)

Parameter:

input_string

A string expression to encode.

Example:

string szEncodedString;

szEncodedString = EncodeSpecialChars("<firstname&name>");
log "encoded string = " + szEncodedString;

Output:

encoded string = &lt;firstname&amp;name&gt;





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap