浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
~/b2evocore/_class_item.php 用了原来0.9.012的,修正text render显示时不正确

~/conf/_config.php:
$baseurl = 'http://' . $_SERVER['SERVER_NAME'] . '/blog';        // IMPORTANT: NO ENDING SLASH !!!

~/conf/_formatting.php:
$use_balanceTags = 0;        // 0,1 automatically balance unmatched tags in posts and comments.


~/b2evocore/_functions.php:

function format_to_post( $content, $autobr = 0, $is_comment = 0, $encoding = 'UTF-8' )
{
    ...
    if( $use_html_checker )
    {    // Check the code:
        if( ! $is_comment )
        {
            //$checker = & new SafeHtmlChecker( $allowed_tags, $allowed_attribues,
            //                                                                $uri_attrs, $allowed_uri_scheme, $encoding );
        }
        else
        {
            $checker = & new SafeHtmlChecker( $comments_allowed_tags, $comments_allowed_attribues,
                                                                            $uri_attrs, $comments_allowed_uri_scheme, $encoding );
            $checker->check( $content );
        }
    }
posted on 2005-10-06 17:31  浙林龙哥  阅读(451)  评论(0编辑  收藏  举报