Reputation: 127
How can I post HTML to a textarea? Or in some other HTML tags?
I want it to be like a textarea, but not code text into it, just the HTML result of the code. with a scrollbar, like the following
Upvotes: 0
Views: 432
Reputation: 1061
If I understand correctly, you want your HTML to appear in a box. You don't want to be able to edit it once it is generated, but you want scrollbars down the side if the content is too big.
Try wrapping the whole thing in a <div> with scrollbars
<div style="height:200px; overflow:scroll">
<!-- Your HTML table -->
</div>
Alternatively, you might want to put your table on a separate page and use an iframe to show it.
<iframe src="/yourtable.html" style="height:200px" />
Upvotes: 0
Reputation: 1745
Try a WYSIWIG editor like
TinyMCE - http://tinymce.moxiecode.com/
or
CKEditor - http://ckeditor.com/
These will allow you to do what you are looking for hopefully.
Upvotes: 2