/** * Text-to-html parser, similar to Textile or RedCloth, only with a little different syntax. * * @param string $text String to "flay" * @param boolean $allowHtml Set to true if if html is allowed * @return string "Flayed" text * @access public * @todo Change this. We need a real Textile parser. * @codeCoverageIgnoreStart */ function flay($text, $allowHtml = false) { trigger_error(__('(TextHelper::flay) Deprecated: the Flay library is no longer supported and will be removed in a future version.', true), E_USER_WARNING); if (!class_exists('Flay')) { uses('flay'); } return Flay::toHtml($text, false, $allowHtml); }
/** * Return parsed text with tags stripped out. * * @param string $text Text to parse and clean * @return string Cleaned text * @access public */ function toParsedAndClean($text) { return $this->toClean(Flay::toHtml($text)); }
/** * Text-to-html parser, similar to Textile or RedCloth, only with a little different syntax. * * @param string $text String to "flay" * @param boolean $allowHtml Set to true if if html is allowed * @return string "Flayed" text * @todo Change this. We need a real Textile parser. * @access public */ function flay($text, $allowHtml = false) { return Flay::toHtml($text, false, $allowHtml); }
/** * Text-to-html parser, similar to Textile or RedCloth, only with a little different syntax. * * @param string $text String to "flay" * @param boolean $allowHtml Set to true if if html is allowed * @return string "Flayed" text * @access public * @todo Change this. We need a real Textile parser. */ function flay($text, $allowHtml = false) { if (!class_exists('Flay')) { uses('flay'); } return Flay::toHtml($text, false, $allowHtml); }