Unterminated entity reference in PHP

后端 未结 7 1298
遥遥无期
遥遥无期 2021-02-02 06:06

Here is my code:

\');
$pro         


        
7条回答
  •  别那么骄傲
    2021-02-02 06:18

    My solution to this is specifically creating a text node, which makes sure absolutely everything is escaped properly:

    $cell = $dom->createElement('td');
    $cell->appendChild($dom->createTextNode($value));
    

提交回复
热议问题