Forum OpenACS Q&A: Re: misinterpreted \n from tcl / javascript

Collapse
Posted by Thomas Blanchin on
I founded a quick fix :

adding :
set text [ad_text_to_html $text]
set text [ad_html_to_text $text]

before :
set text [string map {\n \\n} $text]

and that works... !?

Quite strange since ad_text_to_html and ad_html_to_text should result in the initial @text@ variable isn't it ?