nel title ho:
<title> $outstring </title>

e se $outstring è un carattere come <? si blocca tutto ovviamente