Topic: Text field and HTML output
OK, apologies in advance ...this is a really dumb question but here goes. @formatted_question[:anno_a] contains text with HTML markup. When it is displayed on the page, rather than interpreting the HTML, it is output as a string with all HTML tags showing. What am I doing wrong??
<div id = "A">
<textarea><%= @formatted_question[:anno_a] %></textarea>
</div>
or
<div id = "A">
<%= text_area_tag id="cka",(@formatted_question[:anno_a]) %>
</div>
ALso tried this and it produces an empty text field:
<div id = "A">
<%= text_area id="ck_a",(@formatted_question[:anno_a]) %>
</div>
Last edited by dcastellano1 (2013-01-27 13:04:17)