I have sorted out my problem, but if any of you are interested this is how I did it... there may be a better way and if you know of one, I am always open to suggestions.
// This just creates a text area to type in
// content and then sends the text in that
// text area back to the same page... I
// eventually want to send it to database to
// store the text, but for easy following
// this will print out on the screen what
// the formated text looks like.
<body>
<form action="format.php" method=post>
// Creates the text area
<textarea name="text" cols=45 rows=8 wrap></textarea>
<br>
<input type=submit value="submit">
<br>
<br>
// when the text is sent via the form back
// to this page.. (in this instance all
// characters such as > & < ") are changed
// to their HTML conter parts such as " is
// stored as "
// Then nl2br places in <br>'s for every
// line break. It is v.important to use the
// function nl2br() AFTER HTMLSpecialChars()
// otherwise \'s are placed around the < >
// braces.
<?php
$new = HTMLSpecialChars($text);
$print_new = nl2br($new);
echo $print_new;
?>
</form>
</body>
And there you go... that is how I did it.. hope that helps some of you out there....
As Always
Clive