[PHP] preg_match_all nested html text

2008-08-20 Thread ioannes
I am trying to get the text between nested html tags within arrays produced by preg_match_all. The simple situation would be: trtdtest/td/tr I want to return 'test'. Assuming $post_results has some string derived from a html page source with lots of nested tags. Replacing new line (seems

Re: [PHP] preg_match_all nested html text

2008-08-20 Thread Ashley Sheridan
Do you just wish to remove all the HTML tags from a given string? If so, the strip_tags() function should do this. Ash www.ashleysheridan.co.uk ---BeginMessage--- I am trying to get the text between nested html tags within arrays produced by preg_match_all. The simple situation would be: