You are not logged in.
I've read through the discussion on the arguments between using <P> and <BR> tags and the operation if IE vs Firefox, but not seen a possible answer.
What I want is to keep the <P> behaviour, but have a line break between the end of the </P> and the start of the next <P>. Without this, Xinha generates a single long string of text that my environment doesn't like.
So rather than genereate :
<P>Line 1</P><P>Line 2</P>
I want :
<P>Line 1</P>
<P>Line 2</P>
in the generated HTML
dbakkers@solidinterface.com.au
Offline
isn't both exaclty the same?
if you want nicely-formated html try using HtmlTidy.
Niko
Offline
Not quite the same. If a user is typing a very long message, Xinha turns it all into one long HTML 'sentence'. The mail server I use to underpin my application has limits on the length of a single sentence in the outgoing message.
My use of Xinha needs line breaks between the <p> paragraphs to break the text length into smaller pieces to stop the limit being reached. Also, the same would be good between the <br /> tags generated by Xinha.
I need to know where and how to insert those breaks. Would I need to insert an ASCII escape chacter or something else.
Offline
One option is to run a post-submit string replacement in php or whatever you are using.
<?php
...
// give line break after <p> tags
$_POST['fieldname'] = str_replace('</p>', "</p>\n", $_POST['fieldname']);
...
?>
rift design studio
[url]http://www.riftdesign.com[/url]
Offline