Escape only the tags of certain HTML elements in string
.
Takes an element or elements or array of elements. Each element is specified by the name of the element, without angle brackets. This matches both the start and the end tag of that element. The attribute list of the open tag will also be escaped (for instance, the double-quotes surrounding attribute values).
print CGI::escapeElement('<BR><A HREF="url"></A>', "A", "IMG") # "<BR><A HREF="url"></A>" print CGI::escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"]) # "<BR><A HREF="url"></A>"
Removes a header field, specified by case-insensitive key.
<!ELEMENT …>
<!ELEMENT …>
Is remote fetching enabled?
Displays an alert statement
. Asks a question
if given.
Converts a String to true
or false
Raises an exception if str
is not 0
or 1
Converts the given hash
to an XMLRPC::FaultException
object by passing the faultCode
and faultString
attributes of the Hash
to XMLRPC::FaultException.new
Raises an Exception
if the given hash
doesn’t meet the requirements. Those requirements being:
2 keys
'faultCode'
key is an Integer
'faultString'
key is a String
Return the best specification that contains the file matching path
amongst the specs that are not activated.
Enumerates the outdated local gems yielding the local specification and the latest remote version.
This method may take some time to return as it must check each local gem against the server’s index.
Sets up the resolution process @return [void]
Ends the resolution process @return [void]
Returns the current session cache size. Zero is used to represent an unlimited cache size.
Sets the session cache size. Returns the previously valid session cache size. Zero is used to represent an unlimited session cache size.
Returns a Hash
containing the following keys:
Number of started SSL/TLS handshakes in server mode
Number of established SSL/TLS sessions in server mode
Number of start renegotiations in server mode
Number of sessions that were removed due to cache overflow
Number of successfully reused connections
Number of sessions proposed by clients that were not found in the cache
Number of sessions in the internal session cache
Number of sessions retrieved from the external cache in server mode
Number of started SSL/TLS handshakes in client mode
Number of established SSL/TLS sessions in client mode
Number of start renegotiations in client mode
Number of sessions proposed by clients that were found in the cache but had expired due to timeouts