Netcarver\Textile\Parser::textileThis
Parses the given Textile input in un-restricted mode.
This method should be used to parse any trusted Textile input, such as articles created by well-known authorised users. This method allows users to mix raw HTML and Textile. If you want to parse untrusted input, see the textileRestricted method instead. Using this less restrictive method on untrusted input, like comments and forum posts, will lead to XSS issues, as users will be able to use any HTML code, JavaScript links and Textile attributes in their input.
Signature
public function textileThis(string
$text,
[boolean
$lite = false,
[boolean
$encode = false,
[boolean
$noimage = false,
[boolean
$strict = false,
[string
$rel = '']]]]] )
Parameters
$text
— string- The Textile input to parse
$lite
— boolean- Switch to lite mode
$encode
— boolean- Encode input and return
$noimage
— boolean- Disables images
$strict
— boolean- This argument is ignored
$rel
— string- Relationship attribute applied to generated links
Returns
- string
- Parsed $text