What are the required and sufficient characters when exiting user content before exiting? (in other words: what are the characters that web developers should avoid when displaying text that was previously received from an unreliable anonymous source?)
When you repeat the page you need to encode
'&' (ampersand) becomes ' &''' '(double quote) becomes' "''' '(single quote) becomes' '''<' (less) becomes ' <'' > ' () '>'
&
"
'
<
>
PHP htmlspecialchars() docs.
htmlspecialchars()
, .
.
, < > & " ' .
< > & " '
Source: https://habr.com/ru/post/1751177/More articles:Problem with Media Player base on iOS4 and iOS3 deployment - iphoneAD0.NET Entity Framework 4.0 or Linq-to-SQL - linqHow to run java code using java code? - javased + нужно удалить каждую строку в файле, начинающуюся С### - sedjquery hide not working (NOT IE) - jqueryMysql REGEXP, how to make an exact match - regexWeb Socket Questions - javascriptline sed + delete starting with ### includes a space between the beginning of the line and ### - sedPython dynamically imports the script, __name__ == "__main__" code must be called - pythonКогда разработчики должны читать и узнавать о шаблонах проектирования? - design-patternsAll Articles