Re: Re[2]: [PHP] nested tags
| From: | CPT John W. Holmes | Date: | Wed, 14 Jan 2004 15:33:05 +0000 |
| Subject: | Re: Re[2]: [PHP] nested tags | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174558@lists.php.net to get a copy of this message | ||
From: "Richard Davey" <rich@launchcode.co.uk>
> GJ> HTML tags.
> GJ> I can have something like
> GJ> <table>
> GJ> first
> GJ> <table>
> GJ> second table
> GJ> </table>
> GJ> table
> GJ> </table>
>
> GJ> and i need to convert each <table></table> tags into something more
user
> GJ> friendly.
>
> Come again? Might be helpful to give an example of what you want to
> turn a nested table tag into. I mean, it's perfectly valid being
> nested the way it is.
Maybe
str_replace('<table>','[Hi HTML, this is the user. Could you please start a
table for me? Thanks.]',$html);
and
str_replace('</table>','[Hey HTML, me again. You know that table you
started? Can you end it, please? Thanks.]',$html);
Now tell me that isn't user friendly!
---John Holmes...