In a previous post on how to allow HTML formatting into the description field, Alex said:
"....Formatting will be preserved, however it won't insert HTML for you. So if a user enters in text with newlines, when displayed in HTML the newlines won't be shown. You'll need to do a s/\n/<BR>/g; in perl to covernt newlines to html <BR> tags."
My knowdledge of PERL is still at the "knowing just enough to be dangerous" level so could someone provide a more detailed explaination such as which file to update (add.cgi?) and where/how in the script to insert the s/\n/<BR>/g ?
Thanks in advance!
"....Formatting will be preserved, however it won't insert HTML for you. So if a user enters in text with newlines, when displayed in HTML the newlines won't be shown. You'll need to do a s/\n/<BR>/g; in perl to covernt newlines to html <BR> tags."
My knowdledge of PERL is still at the "knowing just enough to be dangerous" level so could someone provide a more detailed explaination such as which file to update (add.cgi?) and where/how in the script to insert the s/\n/<BR>/g ?
Thanks in advance!