String.xDangerToType
xDangerToType($stringType) -> TypeString
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.xDangerToType('html')