Version: current

     1 <?php
     2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
     3 // +----------------------------------------------------------------------+
     4 // | PHP Version 4                                                        |
     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: Basic.php,v 1.6 2007/07/02 16:54:25 cweiske Exp $
    20 //
    21
    22 /**
    23  * @package  sapphire
    24  * @subpackage misc
    25  * @author   Stijn de Reede  <sjr@gmx.co.uk>
    26  */
    27
    28
    29 /**
    30  */
    31 require_once 'HTML/BBCodeParser/Filter.php';
    32
    33
    34 /**
    35  * @package  sapphire
    36  * @subpackage misc
    37  */
    38 class SSHTMLBBCodeParser_Filter_Basic extends SSHTMLBBCodeParser_Filter
    39 {
    40
    41     /**
    42     * An array of tags parsed by the engine
    43     *
    44     * @access   private
    45     * @var      array
    46     */
    47     var $_definedTags = array(  'b' => array(   'htmlopen'  => 'strong',
    48                                                 'htmlclose' => 'strong',
    49                                                 'allowed'   => 'all',
    50                                                 'attributes'=> array()),
    51                                 'i' => array(   'htmlopen'  => 'em',
    52                                                 'htmlclose' => 'em',
    53                                                 'allowed'   => 'all',
    54                                                 'attributes'=> array()),
    55                                 'u' => array(   'htmlopen'  => 'span style="text-decoration:underline;"',
    56                                                 'htmlclose' => 'span',
    57                                                 'allowed'   => 'all',
    58                                                 'attributes'=> array()),
    59                                 's' => array(   'htmlopen'  => 'del',
    60                                                 'htmlclose' => 'del',
    61                                                 'allowed'   => 'all',
    62                                                 'attributes'=> array()),
    63                                 'sub' => array( 'htmlopen'  => 'sub',
    64                                                 'htmlclose' => 'sub',
    65                                                 'allowed'   => 'all',
    66                                                 'attributes'=> array()),
    67                                 'sup' => array( 'htmlopen'  => 'sup',
    68                                                 'htmlclose' => 'sup',
    69                                                 'allowed'   => 'all',
    70                                                 'attributes'=> array())
    71                             );
    72
    73 }
    74
    75
    76 ?>

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -