ID:185688
 
I'm trying to use a html fiule that contains a textarea to populate another textarea. The problem I've encountered obviosuly is that as the content from the html file is printed, as soon as it reaches the textarea within it, its closing tag closes the textarea on the page that its populating. What I need to do is find a way for PHP to pribnt that content to the textarea without evaluating the html within.

Basically I need php to ignore html in a string but still print it.

Hopefully thats straight forward enough to not be too confusing. Any help would be greatly appreciated.

Thanks in advance guys,

- GunRunner
What are you talking about? The most I think I was able to comprehend from that is that you want a private messaging system that updates one textarea containing all the messages and another textarea to stay put, that way if another person is typing while another submits, he/she won't lose all their data. Something like that?
So you want to output a </textarea> tag inside another set of textarea tags, but so that it shows up as the literal text "</textarea>" inside the text area rather than ending the text area prematurely?

Sounds like you need the htmlspecialchars function. Use it on the text that you put between the textarea's opening and closing tags.
In response to CaptFalcon33035
I'm a little confused how you got that, but anyway my problem not yours! I just want a strign containing HTML to not be actually read as HTML.

- GunRunner
In response to Crispy
Perfect, thanks heaps for that Crispy.

- GunRunner
In response to GunRunner
No worries. =)
In response to GunRunner
It was messy and what you said was very messy. Anyway, do you mean something like Icon Ultima's UML?