RE: Translation of html?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there!

Isn't there any function for acheiving this? Of course I could do some regexp... Is that the only way?


Best regards
/Gustav Wiberg 

-----Original Message-----
From: Jarrett Meyer [mailto:jmtmeyer@xxxxxxxxx] 
Sent: Monday, June 18, 2007 4:30 PM
To: 'php windows' <\(php-windows@xxxxxxxxxxxxx\)>
Subject: Re:  Translation of html?

Hack:
Explode on "<" will give you :

h1>This is a title
/h1>
table>
tr>
td>test
/td>
/tr>
/table>

Explode on ">", and only keep the second entry in the array. Would that work?
 
----
Jarrett M. T. Meyer
http://jarrettmeyer.blogspot.com
http://www.jarrettmeyer.com

No trees were harmed during this transmission; however, several electrons were terribly inconvenienced.

----- Original Message ----
From: Gustav Wiberg <gustav@xxxxxx>
To: "'php windows' (php-windows@xxxxxxxxxxxxx)" <php-windows@xxxxxxxxxxxxx>
Sent: Monday, June 18, 2007 10:23:00 AM
Subject:  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

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

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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux