I paste my articles from word into a text area within my form and upload. My problem is that I am losing my paragraphs and the article merges into a single block.
If I use this it inserts <br /> where paragraphs end.
$articletext = nl2br($articletext);
I then tried to use this in conjuction with
$articletext = str_replace("\n","<br/>",$articletext);
I sort of end up with two <br></br> clustered together. My question is how can I get the paragraph spacing I need?
If I use this it inserts <br /> where paragraphs end.
$articletext = nl2br($articletext);
I then tried to use this in conjuction with
$articletext = str_replace("\n","<br/>",$articletext);
I sort of end up with two <br></br> clustered together. My question is how can I get the paragraph spacing I need?
Hi ugly,
I've no idea - but there are a couple of other threads about the same question in the forums here. You may find something useful there.
Bob
I've no idea - but there are a couple of other threads about the same question in the forums here. You may find something useful there.
Bob
Thanks Bob will have a scout around. In the process of pasting from word to the chronotext area how does the para get interpreted by the chrono code?
This topic is locked and no more replies can be posted.