CodeIgniter Forums
Textarea outputs " instead of " - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Textarea outputs " instead of " (/showthread.php?tid=47471)



Textarea outputs " instead of " - El Forum - 12-09-2011

[eluser]suntrop[/eluser]
When I type in a textarea …

Sentence with "quotes" in it

… it is saved as

Sentence with "quotes" in it

The problem is, that the textarea doesn't parse this into " when I output the saved value in another textarea. The next update makes …

Sentence with " quotes" in it

What is wrong? I only validate the textarea like this:
Code:
$this->form_validation->set_rules('notes', 'Comment', 'trim|xss_clean');
Is there anything I have to do when outputting it?