Removing html special characters from a string
Say you want to print some code. You'd have to remove angle brackets and other special characters. One of the functions you can use is htmlspecialchars(). It returns a string that has special characters replaced with their corresponding html entities.
[Click to add or edit comments])
Please prepend comments below including a date