Forums
This topic is locked
reformat HTML...
Posted 04 Apr 2003 02:23:21
1
has voted
04 Apr 2003 02:23:21 Frank Disseldorp posted:
Hi all, I hope you can help me out here. I think it's very easy to do but I can't find the right tool for it.I want to reformat HTML text so that some of the spaces etc. are gone with one click.
For example:
<i>(I)</i>
html>
head>
title>BLABLA</title>
/head>
body bgcolor=#333399>test</body>
/html>
<b>must change in this</b>
<i>(II)</i>
html>head>title>BLABLA/title>/head>body bgcolor=#333399>test/body>/html>
Is this possible to get it done in a easy way?? Like that I can put the HTML text <i>(I)</i> in a text-area, I click on a button and the reformatted HTML <i>(II)</i> comes in another text-area? I hope you know what I mean hehe <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> I think it can be done with Javascript but I can't find it <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
p.s. I ditched the < in the HTML codes above because otherwise they wont show up in this post <img src=../images/dmxzone/forum/icon_smile_approve.gif border=0 align=middle>
Thanks in advance,
Frank Disseldorp
The Netherlands
Replies
Replied 04 Apr 2003 03:35:52
04 Apr 2003 03:35:52 Brent Colflesh replied:
There are a lot of third-party HTML optimization progs out there - this is one I've tried:
www.pcbit.com/htmlopt/
Regards,
Brent
www.pcbit.com/htmlopt/
Regards,
Brent
Replied 04 Apr 2003 11:30:57
04 Apr 2003 11:30:57 Iain Stewart replied:
Hi,
I needed to do a similar thing, what i done was copy and paste the html code into a db field and outputted the the html code as a string to a web page, this just gave me one long string of html code, copied and pasted that, gave me the same results.
Iain
head hurts, 'mental note to self, stop banging head !'
I needed to do a similar thing, what i done was copy and paste the html code into a db field and outputted the the html code as a string to a web page, this just gave me one long string of html code, copied and pasted that, gave me the same results.
Iain
head hurts, 'mental note to self, stop banging head !'
Replied 04 Apr 2003 12:53:31
04 Apr 2003 12:53:31 Frank Disseldorp replied:
Brent and Iain, many thanks for your quick replies. I will try both options you guys gave me. I hope it works...I will let it know.
Thanks again.
Greetings,
Frank Disselorp
The Netherlands
Thanks again.
Greetings,
Frank Disselorp
The Netherlands