log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- RISC OS 'Advent' Calendar 2024 - David Pitt (News:)
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- November 2024 News Summary (News:1)
- Latest hardware upgrade from RISCOSbits (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:3)
- Accessing old floppy disks (Gen:3)
- November developer 'fireside' chat on saturday night (News:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
The Icon Bar: Site Comments: HTML Tidy
 
  HTML Tidy
  Kinetic (21:33 13/5/2003)
  rich (08:18 14/5/2003)
    Kinetic (16:55 14/5/2003)
      Kinetic (17:05 14/5/2003)
        rich (08:14 15/5/2003)
          alpha (09:15 15/5/2003)
            Kinetic (10:48 15/5/2003)
              monkeyson2 (11:07 15/5/2003)
                Kinetic (13:45 15/5/2003)
            rich (17:35 15/5/2003)
              alpha (10:30 16/5/2003)
 
Andrew Duffell Message #41998, posted by ad at 21:33, 13/5/2003

Posts: 3262
Could HTML Tidy be installed on Knox please? :blush:
  ^[ Log in to reply ]
 
Richard Goodwin Message #42001, posted by rich at 08:18, 14/5/2003, in reply to message #41998
Rich
Dictator for life
Posts: 6828
Could HTML Tidy be installed on Knox please? :blush:
Done. It's installed as /usr/local/bin/tidy if you need to reference it directly.

Out of interest, you don't have shell access, so how are you going to use this? If it's via a web page, doesn't W3C already offer this service?
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Andrew Duffell Message #42064, posted by ad at 16:55, 14/5/2003, in reply to message #42001

Posts: 3262
Could HTML Tidy be installed on Knox please? :blush:
Done. It's installed as /usr/local/bin/tidy if you need to reference it directly.

Out of interest, you don't have shell access, so how are you going to use this? If it's via a web page, doesn't W3C already offer this service?
I'm wanting to intergrate it into a web page :)
I can run it like I run PNGCrush I assume:

<?php
system("tidy page.html";);
?>
  ^[ Log in to reply ]
 
Andrew Duffell Message #42068, posted by ad at 17:05, 14/5/2003, in reply to message #42064

Posts: 3262
Example for you lucky people

Before: http://mysober.co.uk/html.html
After: http://mysober.co.uk/tidy.php?source=html.html
  ^[ Log in to reply ]
 
Richard Goodwin Message #42099, posted by rich at 08:14, 15/5/2003, in reply to message #42068
Rich
Dictator for life
Posts: 6828
Groovy. And now Tim can get the admin HTML posting stuff working :)
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Tim Fountain Message #42108, posted by alpha at 09:15, 15/5/2003, in reply to message #42099
Forum bod
Posts: 570
Groovy. And now Tim can get the admin HTML posting stuff working :)
On the forums? If so it should sorta work already. I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed.

BTW Andrew, there's an obvious security hole in that tidy.php script.
  ^[ Log in to reply ]
 
Andrew Duffell Message #42113, posted by ad at 10:48, 15/5/2003, in reply to message #42108

Posts: 3262
Groovy. And now Tim can get the admin HTML posting stuff working :)
On the forums? If so it should sorta work already. I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed.

BTW Andrew, there's an obvious security hole in that tidy.php script.
Yeah, I just noticed that too :o I'll disable the script when I get access to a computer I can FTP from :D
  ^[ Log in to reply ]
 
Phil Mellor Message #42114, posted by monkeyson2 at 11:07, 15/5/2003, in reply to message #42113
monkeyson2Please don't let them make me be a monkey butler

Posts: 12380
<?php system("/usr/local/bin/tidy -i ".$source); ?>

:o
  ^[ Log in to reply ]
 
Andrew Duffell Message #42129, posted by ad at 13:45, 15/5/2003, in reply to message #42114

Posts: 3262
<?php system("/usr/local/bin/tidy -i ".$source); ?>

:o

Don't abuse it :P
  ^[ Log in to reply ]
 
Richard Goodwin Message #42135, posted by rich at 17:35, 15/5/2003, in reply to message #42108
Rich
Dictator for life
Posts: 6828
Groovy. And now Tim can get the admin HTML posting stuff working :)
On the forums? If so it should sorta work already.
Really? I thought you said you couldn't do it without HTML Tidy. And I've been refraining from abusing it because I didn't know you'd fixed it! :)
I can't use HTML tidy on the forums until I work out a way to check whether or not it is installed.
tidy -h, see if anything non-error-like is returned? Not sure about PHP, but in Perl doing a system call should return a success/failure status, and put the output into a variable so you can grep for key phrases if you want to be tarty (like check for version numbers etc.).
________
RichGCheers,
Rich.
  ^[ Log in to reply ]
 
Tim Fountain Message #42158, posted by alpha at 10:30, 16/5/2003, in reply to message #42135
Forum bod
Posts: 570
I thought you said you couldn't do it without HTML Tidy.
Ah yeah, that part isn't quite fixed yet :).

tidy -h should work, I might have a bash with that at the weekend.
  ^[ Log in to reply ]
 

The Icon Bar: Site Comments: HTML Tidy