Example #1
0
 /**
  * Parses the given Textile input in un-restricted mode.
  *
  * @param $text     string The Textile input to parse
  * @param $lite     boolean|string Switch to lite mode
  * @param $encode   string Encode input and return
  * @param $no_image string Disables images
  * @param $strict   boolean|string false to strip whitespace before parsing
  * @param $rel      string Relationship attribute applied to generated links
  * @return string Parsed $text
  */
 public function textileThis($text, $lite = '', $encode = '', $no_image = '', $strict = '', $rel = '')
 {
     return $this->parseSpans(parent::textileThis($text, $lite, $encode, $no_image, $strict, $rel));
 }
Example #2
0
 /**
  * Parse a string using textile
  *
  * @param $string string
  * @return string
  */
 public function textile($string)
 {
     return Textile::parse($string);
 }