, -.
HTML, XHTML XML . . escape-.
, PHP :
$variable = 'It Friday';
, PHP , .
:
$variable = 'It\ Friday';
Similarly, in HTML and XHTML you cannot say
<h1>Inequalities</h1>
<p> x<yz+3 </p>
This is because it will be interpreted as an element.
Instead, you will need to say:
<h1>Inequalities</h1>
<p> x<yz+3 </p>
Now, as you can see, the ampersand itself has special meaning and therefore must be escaped as &. htmlspecialchars () will do this for you.
source
share