Make PHPT globally configurable via test-settings.php
[htmlpurifier/rdancer.git] / smoketests / common.php
blobf657609376dd0b5fd7ab8b6b953c137aaa4b8638
1 <?php
3 header('Content-type: text/html; charset=UTF-8');
5 if (!isset($_GET['standalone'])) {
6 require_once '../library/HTMLPurifier.auto.php';
7 } else {
8 require_once '../library/HTMLPurifier.standalone.php';
10 error_reporting(E_ALL);
12 function escapeHTML($string) {
13 $string = HTMLPurifier_Encoder::cleanUTF8($string);
14 $string = htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
15 return $string;