----- Original Message ----- 
From: "Gordon Stewart"

Hi,

i know this is possible (& want to do it...) - But i'm wondering if
anyone has already done this & has a working script ?

:- Basically, I want to create a Google doc (thats easy....) - Make it
published - so no login required (thats easy)...

:- I'm wanting a PHP script to check that google doc every 24 hours
:- Take away all the HTML codes / Codings etc...
:- So that I'm left with just the bare text of what is entered in the 
doc.....

I've checked on a published test document...

the ONLY word is "test" - & the document (HTML) is 33KB in size...

Lots of Divs / HTML / Javascript etc...

Of course - I'll change it (the document) & test on more words /
paragraphs etc - To see how they look in HTML...

But - Is there a script already out there ?

Ps - I don't mind blank lines in my output (or 2-3 bank lines per 1
blank line on the screen...) - as long as its got a space beween
lines/paragraphs


Thanks...

- if none exists already - Would be good to get my teeth into.....

------------------------------------
strip_tags
(PHP 4, PHP 5)

strip_tags - Strip HTML and PHP tags from a string

Description
string strip_tags ( string $str [, string $allowable_tags ] )
This function tries to return a string with all HTML and PHP tags stripped 
from a given str . It uses the same tag stripping state machine as the 
fgetss() function.

Parameters

  str
  The input string.

  allowable_tags
  You can use the optional second parameter to specify tags which should not 
be stripped.

    Note: HTML comments and PHP tags are also stripped. This is hardcoded 
and can not be changed with allowable_tags .


Return Values
Returns the stripped string.

Reply via email to