Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file modifier.htmlToText.php

Documentation is available at modifier.htmlToText.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8.  
  9. /**
  10.  * Smarty htmlToText modifier plugin
  11.  *
  12.  * Type:    modifier<br>
  13.  * Name:    html2text<br>
  14.  * Purpose: transform a html to a text version
  15.  * @param string 
  16.  */
  17. function smarty_modifier_htmlToText$string {
  18.     return preg_replace('/<.*>/U'''$string);
  19. }
  20. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:09 +0000 by phpDocumentor 1.5.0-lsces