RawHtml
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".
To install RapidApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RapidApp
CPAN shell
perl -MCPAN -e shell install RapidApp
For more information on module installation, please visit the detailed CPAN module installation guide.