Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » View HTML file in a the browser


View HTML file in a the browser

Reply
  #1 (permalink)  
Old 08-26-04, 05:21 AM
ultimate ultimate is offline
New Member
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb View HTML file in a the browser

Hi All,
This is my first post. I am displaying files present on my local system in the browser in a <textarea>. The problem arises when there is a </textarea> tag in the file i am loading in the browser for display, the textarea tag in which i am displaying is closed and rest of the text appers outside the textarea.

Is there any way around.

Thanks
Ultimate
Reply With Quote
  #2 (permalink)  
Old 08-30-04, 11:32 PM
jamslam jamslam is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Do you have PHP running on your local system?
PHP Code:

<?php


$fileContents 
htmlspecialchars($fileContents);

?>
If you're using a different language, I'm sure they have the equivalent
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 10:25 AM
Download html file JoeM ASP 4 10-07-05 09:33 AM
Out-put html file woyrz PHP 1 07-23-04 10:27 AM
Import cgi file in to html renesis HTML/XHTML/XML 1 02-24-04 03:09 PM
Script for picking the first HTML file out of a directory (with sorted HTML files) jelteveld Script Requests 0 08-16-03 01:30 PM


All times are GMT -5. The time now is 10:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.