if ($target) {
// use a "popup" window. this is XHTML compliant, suggested by
// Aaron Kalin. uses the $target as the new window name.
- $target = htmlspecialchars($target);
+ $target = htmlspecialchars($target, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
$output .= " onclick=\"window.open(this.href, '$target');";
$output .= " return false;\"";
}
$q = $text;
}
- $q = htmlspecialchars($q);
- $text = htmlspecialchars($text);
+ $q = htmlspecialchars($q, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
+ $text = htmlspecialchars($text, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
// finish and return
$output .= " href=\"http://php.net/$q\">$text</a>";
return $output;
}
}
-?>
\ No newline at end of file
+?>