Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > HTML Compactor

Reply
Thread Tools

HTML Compactor

 
 
Oli Filth
Guest
Posts: n/a
 
      03-11-2005
Jeremy Ross wrote:
> Hello,
>
> The real reason for wanting something like this, is because there is a
> program that uses the nl2br function in php, witch creates a <br> tag at
> every new line, now i am placing a table inside this function, witch is
> formated wiht each cell on a new line, so there are loads of <br> tages
> being placed in the code, and the table is moving down many lines because of
> this.
>
> I need that program to make it all on one line so there are no <br> tags
> being placed.
>


Or you should stop using the program that's replacing all newlines with
<br>. Why are you using such a thing?

--
Oli
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      03-11-2005
> From: "Jeremy Ross" <>
> Newsgroups: alt.html
> Date: Fri, 11 Mar 2005 12:57:18 GMT
> Subject: Re: HTML Compactor
>
> Hello,
>
> The real reason for wanting something like this, is because there is a
> program that uses the nl2br function in php, witch creates a <br> tag at
> every new line, now i am placing a table inside this function, witch is
> formated wiht each cell on a new line, so there are loads of <br> tages
> being placed in the code, and the table is moving down many lines because of
> this.
>
> I need that program to make it all on one line so there are no <br> tags
> being placed.
>
> Thanks,
> Jeremy



You saying you just want to remove some text? Do a global find <br> and
replace with nothing at all... Using a text editor? Try command F or alt F
or control F or look up the menus for this function... In mine, for example,
one can change all instances in docs in a folder, I'm sure you would be able
to.

dorayme


































 
Reply With Quote
 
 
 
 
Sid Ismail
Guest
Posts: n/a
 
      03-12-2005
On Sat, 12 Mar 2005 10:16:04 +1100, dorayme <>
wrote:

: > From: "Jeremy Ross" <>
: > Newsgroups: alt.html
: > Date: Fri, 11 Mar 2005 12:57:18 GMT
: > Subject: Re: HTML Compactor
: >
: > Hello,
: >
: > The real reason for wanting something like this, is because there is a
: > program that uses the nl2br function in php, witch creates a <br> tag at
: > every new line, now i am placing a table inside this function, witch is
: > formated wiht each cell on a new line, so there are loads of <br> tages
: > being placed in the code, and the table is moving down many lines because of
: > this.
: >
: > I need that program to make it all on one line so there are no <br> tags
: > being placed\0\0\0: >
: > Thanks,
: > Jeremy
:
:
: You saying you just want to remove some text? Do a
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      03-14-2005
Jeremy Ross wrote:
> Hello,
>
> I am looking for a program that will compact my HTML, so its all one one
> line, I have seen many of these programs around before but am now unable to
> find one that does this. If anyone knows of one that would be great.
>
> Thanks,
>
> Jeremy Ross
>
>


You have to be careful using programs that do this. Sadly, some browsers
(ahem, IE) are sensitive to line breaks. Remove line breaks in nested
tables (for example) can cause "gaps" to appear or disappear.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ruby compactor/consolidator? Kyle Schmitt Ruby 5 04-08-2009 05:20 PM
firefox html, my downloaded html and firebug html different? Adam Akhtar Ruby 9 08-16-2008 07:55 PM
Can anyone suggest a good compactor/obfuscator Daz Javascript 1 04-17-2007 12:46 AM
Javascript file compactor wanted Aaron Gray Javascript 5 01-06-2007 07:37 PM
how to redirect to a frames-based html page and load the right html when coming from an ASP.NET page Mark Kamoski ASP .Net 1 08-13-2003 05:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57