Changeset 4
- Timestamp:
- 12/26/2004 08:39:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/formatting-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/formatting-functions.php
r3 r4 55 55 function encode_bad( $text) { 56 56 $text = bb_specialchars($text); 57 $text = preg_replace('|<(/?strong .*?)>|', '<$1>', $text);58 $text = preg_replace('|<(/?em .*?)>|', '<$1>', $text);57 $text = preg_replace('|<(/?strong)>|', '<$1>', $text); 58 $text = preg_replace('|<(/?em)>|', '<$1>', $text); 59 59 $text = preg_replace('|<(/?a.*?)>|', '<$1>', $text); 60 $text = preg_replace('|<(/?ol .*?)>|', '<$1>', $text);61 $text = preg_replace('|<(/?ul .*?)>|', '<$1>', $text);62 $text = preg_replace('|<(/?li .*?)>|', '<$1>', $text);63 $text = preg_replace('|<(/?blockquote .*?)>|', '<$1>', $text);64 $text = preg_replace('|<(/?code .*?)>|', '<$1>', $text);60 $text = preg_replace('|<(/?ol)>|', '<$1>', $text); 61 $text = preg_replace('|<(/?ul)>|', '<$1>', $text); 62 $text = preg_replace('|<(/?li)>|', '<$1>', $text); 63 $text = preg_replace('|<(/?blockquote)>|', '<$1>', $text); 64 $text = preg_replace('|<(/?code)>|', '<$1>', $text); 65 65 return $text; 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.