The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RawHtml

DESCRIPTION

This miniature class is used to flag a scalar as containing text/html.

This should be used anywhere that you want to allow the API user to write direct HTML, but want to provide the convenience of letting them just specify plaintext for most cases. To process it, just check whether the string isa("RapidApp::HTML::RawHtml") before deciding whether to call escape_entities on the string.

You can use the sugar method "ashtml" (RapidApp::Sugar.pm) to make this conversion for you.

There is also a convenient sugar method "rawhtml".