I have a user/profile system, and $text is the users profiletext.
And I want users to be able to have stuff like "<3" in their profiletext... Also, some people would write stuff like "<-Name: MyName->", and I don't want it to see it as HTML tags, so therefore i use the htmlspecialchars().
But I also want users to be able to use specific tags, in this example it would be <a>. So I basicly want to replace <a parameters>text</a> with <a parameters>text</a>
Hope u understand 😉