2 // This script displays tex source code.
4 require_once('../../config.php');
6 $texexp = urldecode($_SERVER['QUERY_STRING']);
7 // entities are usually encoded twice, first in HTML editor then in tex/filter.php
8 $texexp = html_entity_decode(html_entity_decode($texexp));
9 // encode all entities (saves non-ISO)
10 $texexp = htmlentities($texexp,ENT_COMPAT
,'utf-8');
14 <title
>TeX Source
</title
>
15 <meta http
-equiv
="content-type" content
="text/html; charset=utf-8" />
17 <body bgcolor
="#FFFFFF">
18 <?php
echo $texexp; ?
>