$item_content = '<p>'. str_replace('\n\n', '</p><p>', $item_content) .'</p>';
<?php
$item_content = '<img class="attachment-frontpage-smallthumb wp-post-image" width="140" height="80" title="Screen shot 2013-10-25 at 11.55.11 AM" alt="Screen shot 2013-10-25 at 11.55.11 AM" src="http://media.gizmodo.co.uk/wp-content/uploads/2013/10/Screen-shot-2013-10-25-at-11.55.11-AM.png">
How do you revive the Sh*t Girls Say meme that’s dead not only because we all grew tired of it, but because YouTube productivity assassins (aka movie makers) simply ran out of different types of people to make fun of? You reverse it and switch it into shit people would NEVER say. Like nerds thinking [...]
<img width="1" height="1" border="0" src="http://gizmodo.feedsportal.com/c/34920/f/644110/s/32e94f6a/sc/1/mf.gif">
<br clear="all">';
?>
我正在尝试分隔文本,以便文本将用<p>
标签包裹,但str_replace
我得到的包裹我的整个字符串,包括图像<p>