I would use the debugger to inspect the value of $tree and make sure it's what you expect.
In reply to Re: How to extract text between two tags?
by GotToBTru
in thread How to extract text between two tags?
by Cursed Chico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |