aliento Posted May 20, 2009 Share Posted May 20, 2009 Hello, The script i am building needs to load html code into a textarea. The problem is when the page's html code have a textarea the scrpt's textarea stops. Is there any solution for this? Thank you Quote Link to comment https://forums.phpfreaks.com/topic/158881-solved-load-html-code-into-textarea/ Share on other sites More sharing options...
bananababe Posted May 20, 2009 Share Posted May 20, 2009 Do you want the code to be there on page load and is it static? If so, you add copy between the textarea tags as follows: <textarea name="comments" id="comments" cols="44" rows="8"><p><strong>type your code or comments here</strong></p> </textarea> btw - my doc type is <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Quote Link to comment https://forums.phpfreaks.com/topic/158881-solved-load-html-code-into-textarea/#findComment-838281 Share on other sites More sharing options...
aliento Posted May 20, 2009 Author Share Posted May 20, 2009 I dont understand what this code do??? I have found a solution, thanks anyway echo htmlspecialchars($file_source); Quote Link to comment https://forums.phpfreaks.com/topic/158881-solved-load-html-code-into-textarea/#findComment-838299 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.