Dec 14, 2006 #1 hunt00 Technical User Mar 6, 2005 79 US By php, how to strip a html tag which has an id relates to it? For example, <div id="test" class="test"><p>Here is the content</p></div> The end results will only have: <p>Here is the content</p> Thanks!
By php, how to strip a html tag which has an id relates to it? For example, <div id="test" class="test"><p>Here is the content</p></div> The end results will only have: <p>Here is the content</p> Thanks!
Dec 15, 2006 #2 spookie Programmer May 30, 2001 655 IN You need regex to acheive what you want. Have a look at http://www.php.net/manual/en/function.preg-replace.php -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow. Upvote 0 Downvote
You need regex to acheive what you want. Have a look at http://www.php.net/manual/en/function.preg-replace.php -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.