Link to home
Start Free TrialLog in
Avatar of Bice
Bice

asked on

Inserting code into a text file or deleting unwanted code?

I have some code I have grabbed from a news site. I need to take that code and either:

1- Delete the unwanted HTML from around the headlines I have grabbed or
2- Add beginning and ending tags to the code so I can grab it again and just display what is between the two tags I just inserted.

All I need to know is how to either insert code into a text file via PHP, or how to delete unwanted lines of code. Any help or direction to where I can find help would be greatly appreciated.
ASKER CERTIFIED SOLUTION
Avatar of girish_nair
girish_nair

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bice
Bice

ASKER

Thanks, I will look into this and hopefully get it to work. I just needed a direction to go towards.