Is there any way to rename or hide only one HTML tag?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2013-11-08T03:42:03Z Indexed on 2013/11/08 3:53 UTC
Read the original article Hit count: 108

Filed under:
|
|
|
|

Preface: I cannot rename the source tags or edit their IDs. Any changes to the tags must happen after they have been fetched.

What I'm doing: using file_get_contents in PHP, I am requesting data from a remote site. This data is just two <p> tags. I need to hide or rename the second of the two <p> tags. Is this possible with PHP or jQuery?

What I'm working with:

<p>Hello my name is test</p><p>I like studying geology.</p>

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery