[Plugin: Reed Write] HTML Entities
-
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.
- The topic ‘[Plugin: Reed Write] HTML Entities’ is closed to new replies.