++ed by:
TIMB KEEDI CAMSPI JROBINSON EMAZEP

11 PAUSE users
15 non-PAUSE users.

Henry Van Styn

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".