コード例 #1
0
function comment_text_rss()
{
    global $comment;
    $comment_text = stripslashes($comment->comment_content);
    $comment_text = str_replace('<trackback />', '', $comment_text);
    $comment_text = str_replace('<pingback />', '', $comment_text);
    $comment_text = convert_chars($comment_text);
    $comment_text = convert_bbcode($comment_text);
    $comment_text = convert_gmcode($comment_text);
    $comment_text = convert_smilies($comment_text);
    $comment_text = apply_filters('comment_text', $comment_text);
    $comment_text = strip_tags($comment_text);
    $comment_text = htmlspecialchars($comment_text);
    echo $comment_text;
}
コード例 #2
0
function comment_text_rss($with_html = false)
{
    global $blog_charset;
    global $comment;
    $comment_text = stripslashes($comment->comment_content);
    $comment_text = str_replace('<trackback />', '', $comment_text);
    $comment_text = str_replace('<pingback />', '', $comment_text);
    $comment_text = convert_chars($comment_text);
    $comment_text = convert_bbcode($comment_text);
    $comment_text = convert_gmcode($comment_text);
    $comment_text = convert_smilies($comment_text);
    $comment_text = apply_filters('comment_text', $comment_text);
    if (!$with_html) {
        $comment_text = strip_tags($comment_text);
        $comment_text = htmlspecialchars($comment_text);
    }
    $rss_charset = wp_get_rss_charset();
    if ($blog_charset != $rss_charset) {
        echo mb_convert_encoding($comment_text, $rss_charset, $blog_charset);
    } else {
        echo $comment_text;
    }
}
コード例 #3
0
function comment_text()
{
    global $commentdata;
    $comment = stripslashes($commentdata['comment_content']);
    $comment = str_replace('<trackback />', '', $comment);
    $comment = str_replace('<pingback />', '', $comment);
    $comment = convert_chars($comment);
    $comment = convert_bbcode($comment);
    $comment = convert_gmcode($comment);
    $comment = convert_smilies($comment);
    $comment = make_clickable($comment);
    $comment = balanceTags($comment);
    $comment = apply_filters('comment_text', $comment);
    echo $comment;
}