|
Regular expressions are better, I just used this function recently
But it is recommended that you use the htmlentities function to process the resulting string before outputting
In this way, when outputting in HTML, there will be no errors due to special characters |
|