For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > June 2007 > RE: [PHP-WIN] Translation of html?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-WIN] Translation of html?
Gustav Wiberg

2007-06-18, 7:00 pm

Hi there!

Ok, thanx! Then I'll know!

Best regards
/Gustav Wiberg=20

-----Original Message-----
From: Bill Bolte [mailto:billb@hightouchinc.com]=20
Sent: Monday, June 18, 2007 4:32 PM
To: php-windows@lists.php.net
Subject: RE: [PHP-WIN] Translation of html?

There isn't anything built in to PHP to do this but one could do it with
Regular Expressions. You might check through the Pear libraries or the
PHP classes website for functions/classes already built.=20

-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]=20
Sent: Monday, June 18, 2007 9:23 AM
To: 'php windows' (php-windows@lists.php.net)
Subject: [PHP-WIN] Translation of html?

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=20

$str =3D "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";


To a string that is like:



This is a title

Test





?

Best regards
/Gustav Wiberg

--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mikael Grön

2007-06-18, 7:00 pm

strip_tags($string); removes all html from any string, but won't put in
any spaces so you'd get:

This is a titletest

Mike


Gustav Wiberg skrev:
> Hi there!
>
> Ok, thanx! Then I'll know!
>
> Best regards
> /Gustav Wiberg
>
> -----Original Message-----
> From: Bill Bolte [mailto:billb@hightouchinc.com]
> Sent: Monday, June 18, 2007 4:32 PM
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Translation of html?
>
> There isn't anything built in to PHP to do this but one could do it with
> Regular Expressions. You might check through the Pear libraries or the
> PHP classes website for functions/classes already built.
>
> -----Original Message-----
> From: Gustav Wiberg [mailto:gustav@hmn.se]
> Sent: Monday, June 18, 2007 9:23 AM
> To: 'php windows' (php-windows@lists.php.net)
> Subject: [PHP-WIN] Translation of html?
>
> 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
>
>
>
>
>
> ?
>
> Best regards
> /Gustav Wiberg
>
>

Killing

2007-06-19, 10:03 pm

Shania Twain Shows Tiny Tits & Ass!

http://www.shockingonline.com/PlayFile?q=726648



funny joke pic video com funny jokaroo video funny video clip girl funny basketball video free funny cat video
http://635-funny-video.info/funny-mario-video.html http://635-funny-video.info/free-funny-site-video.html http://635-funny-video.info/funny-video-clip-nude.html http://635-funny-video.info/funny-m...video-clip.html http://635-funny-video.info/cute-an...imal-video.html
Dickder

2007-06-26, 2:33 am

Laetitia Casta and Jennifer Aniston , Movies Of Crucified Lesbian Slave!
http://www.eyrenet.com/Play?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com