Hi i am wondering if it is possible to open a html document and delete everything between the body tags and then write between them and if so how is that possible?
I know how to read between them with preg_match.
What im trying to do is to use tinymce to edit webpages, i have successfully managed to read everything between the body tags and load it in tinymce and now is the last part to save it.
Help would be very much appreciated.
Delete and write within body tags
Moderator: General Moderators
-
strafingmoose
- Forum Newbie
- Posts: 15
- Joined: Mon Apr 18, 2011 2:56 pm
Re: Delete and write within body tags
Nice i think this will work well
Thanks.
Thanks.
- getmizanur
- Forum Commoner
- Posts: 71
- Joined: Sun Sep 06, 2009 12:28 pm
Re: Delete and write within body tags
Thanks for that, I don't need it now however I can see how I may need it in the future.
Re: Delete and write within body tags
I also found preg_replace, but first i'm going to see if i can make html dom work 