$str = "<div>blahblahblah<b>foofoo</b><i>barbar</i></div>";
I separate two part
1-presentation_text
2-full content when click on read more.
$presentation = substr($str,0,23);
<div>blahblahblah<b>foo
$detail = substr($str,23);
foo</b><i>barbar</i></div>
How Can I keep the format when it display in presentation block and detail block?
I mean
in presentation block should be:
blahblahblahfoo /* foo have bold here*/
in detail block
foobarbar /* foo have bold too*/
Much easier to do it client-side:
CSS
Javascript
HTML
Working example: http://jsfiddle.net/fznWf/1/