Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

String.dangerDangerSetType

dangerDangerSetType($stringType)

Description

Convert into a TypeString.

WarningThis method exposes you to injection attacks. Avoid typing strings that are mixed with dynamic data. Otherwise, you must apply your own escaping and filtering, which is prone to error. Only use it as a last resort.

$plainLink = '<a href="/page/3">Page 3</a>';
$link = plainLink.dangerDangerSetType('html');