the values of the given variables. In other contexts, returns the changed versions.
<: print '' . Entity($user_input) . '
'; :>
Inside attributes, always use EscapeHTML() instead.
=item EncodeURI LIST
Encodes URI strings according to RFC 3986. All disallowed characters are replaced by their %-encoded values.
In void context, B the values of the given variables. In other contexts, returns the changed versions.
Link
Note that the following reserved characters are I percent-encoded, even though they may have a special meaning in URIs:
/ ? : @ $
This should be safe for escaping query values (as in the example above),
but otherwise it may be a better idea to use L instead.
=item DecodeURI LIST
Decodes %-encoded strings. Unlike L,
it also translates + characters to spaces (as browsers use those).
In void context, B the values of the given variables. In other contexts, returns the changed versions.
=item ReadFile FILENAME
Returns the contents of FILENAME in one large string. Returns undef on failure.
=item WriteFile FILENAME, STRING
Writes STRING to FILENAME (overwrites FILENAME if it already exists). Returns true on success, false on failure.
=item Counter FILENAME
Increases the contents of FILENAME by one and returns the new value. Returns undef on failure. Fails silently.
You are visitor number <:= Counter('counter.txt') :>.
=item AutoURL STRING
Replaces URLs (actually, replace things that look like URLs) by links.
In void context, B the value of the given variable. In other contexts, returns the changed version.
<: print AutoURL(Entity($user_input)); :>
=item AddCookie STRING
Adds a Set-Cookie header. STRING must be a valid Set-Cookie header value.
=back
=head1 AUTHOR
Juerd Waalboer
Current maintainer: Mischa POSLAWSKY
=cut