Philip Greenspun's Homepage : Philip Greenspun's Homepage Discussion Forums : 6916 : One Thread
Notify me of new responses
When I invoke ns_quotehtml within an HTML form textarea tag, all is well. When I invoke it outside a form tag, I lose all of the line-breaks. As a result, template-view.tcl displays a long string that's incomprehensible. How can I get the lines to break?

-- David Sirkin, November 1, 1999


Formatting in html

ns_quotehtml changes special html characters into their quoted versions. It does not "format" line breaks into the string. Perhaps you should consider <pre></pre> which tells the browser to not interpret the formatting of the text between the tags.

-- Jesse Koontz, November 1, 1999