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

Source for file Xhtml.php

Documentation is available at Xhtml.php

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

Documentation generated on Mon, 11 Mar 2019 14:28:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.