Hello to everyone,
Assuming i have this simple script :
<?PHP
//Opening tag ='
$html_header='
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
'; // Closing tag ='
echo $html_header;
?>
If the opening & closing tags are both ' then it works fine, but if the
html script itself contains a ' then i need some way to escape it, no ?
How should i do it if i had something like <HEAD><TITLE='P HP foo'></HEAD>?
Assuming i have this simple script :
<?PHP
//Opening tag ='
$html_header='
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
'; // Closing tag ='
echo $html_header;
?>
If the opening & closing tags are both ' then it works fine, but if the
html script itself contains a ' then i need some way to escape it, no ?
How should i do it if i had something like <HEAD><TITLE='P HP foo'></HEAD>?
Comment