Dec 14, 2006 #1 hunt00 Technical User Joined Mar 6, 2005 Messages 79 Location 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 Joined May 30, 2001 Messages 655 Location 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.