I've written a simlple UDF that takes input from a input box on a form and formats it for display on a webpage. I'm using the Fusebox methodology and I've stored the UDF in app_local.cfm (where I store local variables for the fuse).
function text2html (text_input)
{
//Trim leading and trailing white spaces
trim (text_input);
//Convert text to HTML format
HTMLEditFormat (text_input)
//Return formatted HTML
Return text_input;
}
But it keeps returning the following error:
Just in time compilation error
Invalid parser construct found on line 29 at position 14. ColdFusion was looking at the following text:
text2html
Invalid expression format. The usual cause is an error in the expression structure.
Every thing seems to be in order but for somereason it keeps giving me an error - any ideas guys???
function text2html (text_input)
{
//Trim leading and trailing white spaces
trim (text_input);
//Convert text to HTML format
HTMLEditFormat (text_input)
//Return formatted HTML
Return text_input;
}
But it keeps returning the following error:
Just in time compilation error
Invalid parser construct found on line 29 at position 14. ColdFusion was looking at the following text:
text2html
Invalid expression format. The usual cause is an error in the expression structure.
Every thing seems to be in order but for somereason it keeps giving me an error - any ideas guys???