I posted this in javascript but there where no takers.
Maybe PHP is the way to go. The appeal of javascript was the the converter could be used localy on the users machine.
anyway here it is….what do you guys think?
[QUOTE]
I hade an idea for a handy script and I thought javascript could do it. I have looked on the net for something like this but could only fine an app that converted HTML to PHP. It was called “Hixus HTML Converter” and can be found here: [URL=http://hixus.com ]http://hixus.com
So I was hopping someone would have the time or know of a script that does this:
Take the HTML code:
[code=php]
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>My Site</title>
</head>
<body>
<p>Line1</p>
<p>Line2</p>
<p>Line3</p>
</body>
</html>
And convert it to this:
[code=php]
print “<html>n”;
print “<head>n”;
print “<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>n”;
print “<title>My Site</title>n”;
print “</head>n”;
print “<body>n”;
print “<p>Line1</p>n”;
print “<p>Line2</p>n”;
print “<p>Line3</p>n”;
print “</body>n”;
print “</html>n”;
And then have the option to convert back the other way.
I may even be a nice idea to have an option to use either “print” or “echo” in the PHP code.
It looks like an easy thing to do, for someone with the skills that is.
what I see in my head is two text boxes; HTML and PHP and a convert back and forth button or buttons.
I would like to also invite anyone to add there comments to this idea, Inprove it, offer any other functions that may be cool.
Hey….for all I know this may allready exist….But I couldn’t find it.
Cheers
Chris