The php Function HTMLspecialChars
Some characters have special significance in HTML and must be represented by HTML entities if you want to preserve their meanings. These characters include & (ampersand), " (single quote),
If you want to make sure that your web page displays correctly, you should run any text users enter into forms or other data through htmlspecialchars before displaying it to the user. Otherwise, if the user enters something like "angle
The php function htmlspecialchars has many optional parameters that you can use to customize its behavior. Some of the most important are the flags that control how it handles quotes, and how it deals with invalid code sequences. There is also an argument for the document type, which controls whether a string should be treated as plaintext or as HTML. For example, the document type ENT_XML1 will treat