Re: Translation of html?

From: Date: Mon, 18 Jun 2007 14:48:32 +0000
Subject: Re: Translation of html?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-28108@lists.php.net to get a copy of this message
Gustav Wiberg wrote: > Hi there! > Is this possible? I can't find any functions for this (I don't exactly what to search > for) > > Translation of Html-string from > $str = "<h1>This is a > title></h1><table><tr><td>test</td></tr></table>"; > > To a string that is like: > This is a title > Test This class converts HTML to plain, formatted ASCII text. By default, the text is wrapped to 70 characters, and some basic formatting is applied to preserve some of the HTML formatting. Some examples: * Paragraphs are indented * Heading tags <h1> - <h3> are all caps * Horizontal lines, <hr>, are converted to hyphens * Links are preserved as a footnoted list at the end http://chuggnutt.com/html2text.php Regards, =dn

« previous php.windows (#28108) next »