scvinodkumar Posted September 11, 2008 Share Posted September 11, 2008 Hello friends, I have html content stored in the database. Now i need to split the image and text from the content. For example, the content will look like this, I'm a big fan of almost all <img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://1.bp.blogspot.com/_tFUA_-9YcQ0/SMUmKySSKnI/AAAAAAAAAPI/YXzr_B7xSEg/s200/google-chrome.jpg" alt="Google Chrome" id="BLOGGER_PHOTO_ID_5243639307881818738" border="0" />things Google, although their new browser, Google <a href="http://www.google.com/chrome">Chrome</a> from the above content, i want to split the image and text separately. Please help me. Link to comment https://forums.phpfreaks.com/topic/123808-splitting-image-and-text-from-the-text-content/ Share on other sites More sharing options...
BlueSkyIS Posted September 11, 2008 Share Posted September 11, 2008 do you need to keep the image for something else, or just remove it? Link to comment https://forums.phpfreaks.com/topic/123808-splitting-image-and-text-from-the-text-content/#findComment-639250 Share on other sites More sharing options...
scvinodkumar Posted September 11, 2008 Author Share Posted September 11, 2008 thanks for your reply. yes, i am going to showing the image and text as well for example, http://news.yahoo.com/i/749;_ylt=AliYoFIV4qrel.k6N9w_5m6s0NUE i want to display the image in the left side and content in the right side Link to comment https://forums.phpfreaks.com/topic/123808-splitting-image-and-text-from-the-text-content/#findComment-639255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.