Hi,
Hope you can help me out with this one..
nl2br($string) converts all the \n to <br \>
... but ..
Suppose I have a table or other HTML elements in $string..
All the TD> and TR> and FORM> are trailed by <br />
How can I adjust the function:
preg_replace("/\r\n|\r|\n/", "<br>\n", $r[body])
to ignore lines ending with >
(or: > n spaces )
Thanx in advance,
Marco Snoek
Hope you can help me out with this one..
nl2br($string) converts all the \n to <br \>
... but ..
Suppose I have a table or other HTML elements in $string..
All the TD> and TR> and FORM> are trailed by <br />
How can I adjust the function:
preg_replace("/\r\n|\r|\n/", "<br>\n", $r[body])
to ignore lines ending with >
(or: > n spaces )
Thanx in advance,
Marco Snoek
Comment