WordPress.org

Forums

Reed Write
[resolved] HTML Entities (2 posts)

  1. placegraphic
    Member
    Posted 3 years ago #

    Hey I like this plugin, but one issue I was having was embedding some flickr galleries in multi line custom fields. I went into multiple_lines.php and just added htmlentities to them in the returns:

    function _rw_field_value_multiple_lines($_rw_field, $_rw_post = false, $wrap = true){
    $_rw_post = $_rw_post ? $_rw_post : (array) $post;
    $custom_values = get_post_custom_values($_rw_field['slug'],$_rw_post['ID']);
    if($custom_values)
    $value = maybe_unserialize(array_shift($custom_values));

    if(!$wrap){
    return htmlentities($value);
    }else{
    return '<p>'.($value ? htmlentities(str_replace(array("\r\r","\r\n","\n\r","\n\n","\r","\n"), '
    ',$value)) : 'Nothing Entered').'</p>';
    }
    }

    Thanks much, I hope that makes sense. I was just sort of half assing it to get it to work.

    http://wordpress.org/extend/plugins/reed-write/

  2. iambriansreed
    Member
    Plugin Author

    Posted 3 years ago #

    Get version 1.3.0 - You get a shout out too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags