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

Source for file Basic.php

Documentation is available at Basic.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 5                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author: Stijn de Reede <sjr@gmx.co.uk>                               |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id$
  20. //
  21.  
  22. /**
  23. @package  HTML_BBCodeParser2
  24. @author   Stijn de Reede  <sjr@gmx.co.uk>
  25. */
  26.  
  27.  
  28. require_once 'HTML/BBCodeParser2/Filter.php';
  29.  
  30.  
  31.  
  32.  
  33. {
  34.  
  35.     /**
  36.     * An array of tags parsed by the engine
  37.     *
  38.     * @access   private
  39.     * @var      array 
  40.     */
  41.     var $_definedTags = array(  'b' => array(   'htmlopen'  => 'strong',
  42.                                                 'htmlclose' => 'strong',
  43.                                                 'allowed'   => 'all',
  44.                                                 'attributes'=> array()),
  45.                                 'i' => array(   'htmlopen'  => 'em',
  46.                                                 'htmlclose' => 'em',
  47.                                                 'allowed'   => 'all',
  48.                                                 'attributes'=> array()),
  49.                                 'u' => array(   'htmlopen'  => 'span style="text-decoration:underline;"',
  50.                                                 'htmlclose' => 'span',
  51.                                                 'allowed'   => 'all',
  52.                                                 'attributes'=> array()),
  53.                                 's' => array(   'htmlopen'  => 'del',
  54.                                                 'htmlclose' => 'del',
  55.                                                 'allowed'   => 'all',
  56.                                                 'attributes'=> array()),
  57.                                 'sub' => array'htmlopen'  => 'sub',
  58.                                                 'htmlclose' => 'sub',
  59.                                                 'allowed'   => 'all',
  60.                                                 'attributes'=> array()),
  61.                                 'sup' => array'htmlopen'  => 'sup',
  62.                                                 'htmlclose' => 'sup',
  63.                                                 'allowed'   => 'all',
  64.                                                 'attributes'=> array())
  65.                             );
  66.  
  67. }

Documentation generated on Sat, 03 Nov 2012 14:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.