Can you be more specific? What do you mean, "provided by the user?" Is it a form text input field? Is it a prompt dialog? Is it something else?
Also, where do you want to display the result? In a message dialog? In the web page, as HTML?
If you want HTML (therefore requiring <br/> tags, unless your CSS respects line breaks), you would just change the replace expression like this:
So let's say you have an element with id="foo" that you want to update with the result, you'd go:
I hope this helps,
[ February 12, 2008: Message edited by: Christophe Porteneuve ] [ February 12, 2008: Message edited by: Christophe Porteneuve ]