Textarea Tag and Displaying HTML
-
Hi guys. I am setting up my new blog and want to use <textarea> to make a box for each story. I did this and it looked great…well, great except that the content of the textarea displays as plain text and not html formatted text.
Now according to
https://webdesign.about.com/library/tags/bltags-textarea.htm
no tags are allowed within the <textarea></textarea> tags. So I may be out of luck.
Here is what I changed in my index.php:
<div class=”storycontent”>
<textarea rows=”30″ cols=”80″ style=”line-height: 100%; text-align: Justify; border-style: inset”>
<?php the_content(); ?>
</textarea>
</div>
The results look great except for the textarea displaying as text.
How can I achieve the textarea result and still have the html display properly? Am I out of luck?
- The topic ‘Textarea Tag and Displaying HTML’ is closed to new replies.