html - HTMLEditFormat and take care of line breaks -


i have text database , want insert html page. i'm using htmleditformat take care of special characters '<' etc...

problem: when displayed in browser line breaks gone. there special formatting function in cf automatically replace line breaks correct html tag?

htmleditformat() escape html markup, line breaks separate issue. definition, line breaks in html don't affect rendering. same multiple spaces , tabs.

if text in question collected in textarea, 1 option output in disabled textarea, render line breaks , spaces typed.

my usual approach to replace new lines
tag , tabs 5  's. paragraphformat() function handle new lines. http://help.adobe.com/en_us/coldfusion/9.0/cfmlref/wsc3ff6d0ea77859461172e0811cbec22c24-6e24.html

or function cflib handle tabs you: http://www.cflib.org/udf/paragraphformat2


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -