KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Basically I want to turn a string like this: <code> <div> blabla </div> </code> into this: <code> <div> blabla </div> </code> How can I do it? The use case (bc some people were curious): A page like this with a list of allowed HTML tags and examples. For example, <code> is a allowed tag, and this would be the sample: <code><?php echo "Hello World!"; ?></code> I wanted a reverse function because there are many such tags with samples that I store them all into a array which I iterate in one loop, instead of handling each one individually...
Tags (comma-separated)
Save Edits
Cancel