Skip to:
Content

BuddyPress.org

Changeset 856


Ignore:
Timestamp:
01/16/2009 09:17:49 PM (16 years ago)
Author:
apeatling
Message:

Added paragraph and line break tag support back into forum posts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-filters.php

    r812 r856  
    2727add_filter( 'bp_the_topic_latest_post_excerpt', 'bp_forums_filter_decode' );
    2828
     29function bp_forums_add_allowed_tags( $allowedtags ) {
     30    $allowedtags['p'] = array();
     31    $allowedtags['br'] = array();
     32   
     33    return $allowedtags;
     34}
     35add_filter( 'edit_allowedtags', 'bp_forums_add_allowed_tags' );
     36
     37
    2938function bp_forums_filter_encode( $content ) {
    3039    $content = htmlentities( $content, ENT_COMPAT, "UTF-8" );
Note: See TracChangeset for help on using the changeset viewer.