Jump to content

[SOLVED] getting the part of string between html tags


asmith

Recommended Posts

Hey guys

 

I have some text in html code. which i need to remove all the html tags from it, so that i could get the plain text.

 

something like :    <p style="color:red;">here goes the text</p>

 

how can i store the characters between <  and > in a variable so i could remove them by str_replace?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.