Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make the codes clean? 2

Status
Not open for further replies.

weifan

IS-IT--Management
Sep 6, 2003
45
US
I found some HTML files with codes like this one:
%3Chtml%3E%0D%0A%0D%0A%3Chead%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DType%22%20content%3D%22text%2Fhtml%3B%20charset%3Dgb2312%22%3E%0D%0A%3Cmeta%20name%3D%22GENERATOR%22%20content%3D%22Microsoft%20FrontPage%204%

Is there a script or program can make it clean?

TIA

Roger
 
yup:
<script type=&quot;text/javascript&quot;>
var text = &quot;%3Chtml%3E%0D%0A%0D%0A%3Chead%3E%0D%0A%3Cmeta%20http%2Dequiv%3D%22Content%2DType%22%20content%3D%22text%2Fhtml%3B%20charset%3Dgb2312%22%3E%0D%0A%3Cmeta%20name%3D%22GENERATOR%22%20content%3D%22Microsoft%20FrontPage%204%&quot;;

alert( unescape(text) );
document.write( unescape(text) );
</script>


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Well jemminger, seeing as how nobody else did, I'll give ya a star for being &quot;helpful&quot;

-----------------------------------------------
&quot;The night sky over the planet Krikkit is the least interesting sight in the entire universe.&quot;
-Hitch Hiker's Guide To The Galaxy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top