QUOTE(sunsuron @ Jul 1 2010, 02:23 PM)
» Click to show Spoiler - click again to hide... «
How about a adding a special token like | to represent a line break? For example:
CODE
foo|bar|baz
CODE
$_post = & get_post( $id ); // $id is the attachment ID (integer)
$desc = $_post->post_content
$lines = explode('|', $desc);
echo implode( '<br />', $lines );
or
CODE
$_post = & get_post( $id ); // $id is the attachment ID (integer)
echo str_replace( '|', '<br />', $_post->post_content);
Jul 1 2010, 03:14 PM
Quote
0.0154sec
0.35
7 queries
GZIP Disabled