Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

keep line break in readonly textarea

chrissy2Feb 17 2009 — edited Feb 18 2009
Hi all,

When I use the readonly option of a textarea, no line breaks will be displayed.
So when it looks in normal mode like this:
- line1
- line2
- line3

in readonly mode it will be displayed this way:
- line1- line2- line3

After searching the forum I found some tipps to use the replace function, so I changed my source to
 SELECT REPLACE(MY_TEXT,CHR(10),'<br />') FROM MY_TABLE WHERE ID = :P1_ID
Now the textarea looks like this in readonly mode
- line1<br />- line2<br />- line3
So the replace is done, but it's not displayed correctly ...

Any ideas what's wrong or any tipps how to show line breaks?

Thanks
chrissy
This post has been answered by Arie Geller on Feb 18 2009
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 18 2009
Added on Feb 17 2009
15 comments
4,900 views