Skip to:
Content

bbPress.org

Changeset 4


Ignore:
Timestamp:
12/26/2004 08:39:40 PM (21 years ago)
Author:
matt
Message:

Only <a> should have attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/formatting-functions.php

    r3 r4  
    5555function encode_bad( $text) {
    5656    $text = bb_specialchars($text);
    57     $text = preg_replace('|&lt;(/?strong.*?)&gt;|', '<$1>', $text);
    58     $text = preg_replace('|&lt;(/?em.*?)&gt;|', '<$1>', $text);
     57    $text = preg_replace('|&lt;(/?strong)&gt;|', '<$1>', $text);
     58    $text = preg_replace('|&lt;(/?em)&gt;|', '<$1>', $text);
    5959    $text = preg_replace('|&lt;(/?a.*?)&gt;|', '<$1>', $text);
    60     $text = preg_replace('|&lt;(/?ol.*?)&gt;|', '<$1>', $text);
    61     $text = preg_replace('|&lt;(/?ul.*?)&gt;|', '<$1>', $text);
    62     $text = preg_replace('|&lt;(/?li.*?)&gt;|', '<$1>', $text);
    63     $text = preg_replace('|&lt;(/?blockquote.*?)&gt;|', '<$1>', $text);
    64     $text = preg_replace('|&lt;(/?code.*?)&gt;|', '<$1>', $text);
     60    $text = preg_replace('|&lt;(/?ol)&gt;|', '<$1>', $text);
     61    $text = preg_replace('|&lt;(/?ul)&gt;|', '<$1>', $text);
     62    $text = preg_replace('|&lt;(/?li)&gt;|', '<$1>', $text);
     63    $text = preg_replace('|&lt;(/?blockquote)&gt;|', '<$1>', $text);
     64    $text = preg_replace('|&lt;(/?code)&gt;|', '<$1>', $text);
    6565    return $text;
    6666}
Note: See TracChangeset for help on using the changeset viewer.