I'm working on an old perl ftp manager that sometimes doesn't render the html source completely. Where I run into a problem is when I go to edit a page that has a textarea inside of it. The editer sees the pages closing </textarea> tag and then renders the rest of the html source to the browser instead of the page contents. I know how to fix this with php by using:
$string = htmlspecialchars($string);
But have know idea how to do this with perl.
This is what my code looks like where the source gets outputed to the edit textarea.
Could somebody please show me a solution?
<textarea cols="70" rows="30" name="file_content">
print while (<FILE>);