Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * 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));
 }
Exemple #3
0
 /**
  * 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);
 }
Exemple #4
0
 /**
  * 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);
 }