How do you retrieve a plain text file (to be used for a html text area) and have it automatically create hyperlinks for url's and email? If possible please have it based off the below code which works well with retrieving the file and adding <BR> for returns. The reason for the code: I'm using preformatted text to maintain basic list style and need the <BR> added to maintain returns for long lines.
<?php print nl2br(implode('', file($MyPath.'text1.txt'))); ?>
... I forgot, also what is the best way of insuring that harmful <tags> will not be used with the code?
Many Thanks,