Friday, 27 September 2013

line break in textarea without displaying HTML tags

line break in textarea without displaying HTML tags

I am using this HTML/PHP Code
<textarea name="ticket_update" id="ticket_update" cols="70" rows="2"><?php
echo 'Ticket '.$ticket["ticketnumber"].'\n'.$result["notes"];
?></textarea>
I have tried using \n \n\r and <br /> but it is displaying the HTML tags
in the textarea.
how can i stop them displaying?

No comments:

Post a Comment