NAME

PApp::HTML - utility functions for html generation

SYNOPSIS

DESCRIPTION

FUNCTIONS

escape_html $arg

Returns the html-escaped version of $arg.

escape_uri $arg

Returns the uri-escaped version of $arg.

escape_attr $arg

Returns the attribute-escaped version of $arg.

Create "a link" (a href) with the given contents, pointing at the given url. It uses single quotes to delimit the url, so watch out and escape yourself!

errbox $error, $explanation

Render a two-part error-box, very distinctive, very ugly, very visible!

submit
submit_image
reset_button

*FIXME*

textfield
textarea
password_field
hidden key => value
checkbox
radiobutton
filefield

*FIXME*

selectbox name, [], attr => value... NYI
mailto_url $mailaddr, key => value, ...

Create a mailto url with the specified headers (see RFC 2368). All values will be scaped for you. Example:

mailto_url "pcg@goof.com",
           subject => "Mail from me",
           body => "(generated from ".reference_url(1).")";

SEE ALSO

PApp.

AUTHOR

Marc Lehmann <pcg@goof.com>
http://www.goof.com/pcg/marc/