I have a site wherein the clients can update the individual pages by editing
the text of that page in a <textarea>. Then, when the page is displayed,
all of the newlines (\n) are converted to HTML line breaks (<br />).
However, I have come across some instances where I do not want to convert
the newlines, such as the following:
<table>
<tr>
....
</tr>
</table>
Obviously, I would not want this to be
<table><br />
<tr><br />
....
</tr><br />
</table><br />
Can anyone suggest a method for achieving this? I've tried different
mixtures of regular expressions, but my skills with those are just not up to
par.
Christopher Finke