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. 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{
  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. ?>

Documentation generated on Mon, 11 Mar 2019 13:56:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.