[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Text/Wiki/Render/ -> Xhtml.php (source)

   1  <?php
   2  
   3  class Text_Wiki_Render_Xhtml extends Text_Wiki_Render {
   4      
   5      var $conf = array('translate' => HTML_ENTITIES);
   6      
   7      function pre()
   8      {
   9          // attempt to translate HTML entities in the source before continuing.
  10          $type = $this->getConf('translate', null);
  11          
  12          // are we translating html?
  13          if ($type !== false && $type !== null) {
  14          
  15              // yes! get the translation table.
  16              $xlate = get_html_translation_table($type);
  17              
  18              // remove the delimiter character it doesn't get translated
  19              unset($xlate[$this->wiki->delim]);
  20              
  21              // translate!
  22              $this->wiki->source = strtr($this->wiki->source, $xlate);
  23          }
  24          
  25      }
  26      
  27      function post()
  28      {
  29          return;
  30      }
  31      
  32  }
  33  ?>


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics