Apologies in advance ...this may be a really dumb question but here
goes.
@formatted_question[:a] contains text with HTML markup. I want to
display it in a field so I can control its vertical and horizontal size
on the page. When it is displayed on the page now, rather than
interpreting the HTML, it is output into the text field as a string with
all HTML tags showing. What am I doing wrong??
<div id = "A">
<%= text_area_tag id="cka",(@formatted_question[:anno_a]) %>
</div>
@formatted_question[:a] contains text with HTML markup. I want to
display it in a field so I can control its vertical and horizontal size
on the page. When it is displayed on the page now, rather than
interpreting the HTML, it is output into the text field as a string with
all HTML tags showing. What am I doing wrong??
Misusing a form element
<div id = "A">
<%= text_area_tag id="cka",(@formatted_question[:anno_a]) %>
</div>
That's the way a text area works; if you want to control display size,
use CSS to size the appropriate block-level container (e.g. div, p).