Changeset 280

Show
Ignore:
Timestamp:
08/29/06 21:30:38 (2 years ago)
Author:
michiel
Message:

allow some more basic html tags in posts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog_admin.php

    r277 r280  
    8787         */ 
    8888        private function _strip_tags($text) { 
    89                 $allowed_tags  = "<h1><h2><p><font><ul><li><ol><blockquote><u><strike><sub><br>"; 
    90                 $allowed_tags .= "<sup><img><a><table><tbody><tr><td><tt><pre><div><span>"; 
     89                $allowed_tags  = "<a><abbr><acronym><address><area><b><bdo><big><blockquote><br><caption><center><cite>"; 
     90                $allowed_tags .= "<code><col><dd><del><dir><div><dfn><dl><dt><fieldset><font><h1><h2><h3><h4><h5><h6>"; 
     91                $allowed_tags .= "<hr><i><img><ins><kbd><li><link><menu><ol><p><pre><q><s><samp><small><span><strike>"; 
     92                $allowed_tags .= "<strong><style><sub><sup><table><tbody><td><tfoot><th><thead><tr><tt><u><ul><var>"; 
    9193                $text = strip_tags($text, $allowed_tags); 
    9294                return preg_replace('/<(.*?)>/ie', "'<'.$this->_strip_attributes('\\1').'>'", $text);