author | František Kučera <franta-hg@frantovo.cz> |
Sun, 15 Aug 2010 22:47:33 +0200 | |
changeset 153 | c84a3e3c8a46 |
parent 136 | 230bd05dcfec |
permissions | -rw-r--r-- |
franta-hg@136 | 1 |
<?php |
franta-hg@136 | 2 |
|
franta-hg@136 | 3 |
$vstup = urldecode(file_get_contents('php://input')); |
franta-hg@136 | 4 |
|
franta-hg@136 | 5 |
require_once "texy-2.1/texy/texy.php"; |
franta-hg@136 | 6 |
$texy = new Texy(); |
franta-hg@136 | 7 |
$texy->encoding = "UTF-8"; |
franta-hg@136 | 8 |
$texy->setOutputMode(Texy::XHTML1_STRICT); |
franta-hg@136 | 9 |
$texy->process(NULL); //advertisingNotice nepotřebujeme: <!-- by Texy2! --> |
franta-hg@136 | 10 |
$vysledek = $texy->process($vstup); |
franta-hg@136 | 11 |
|
franta-hg@136 | 12 |
echo($vysledek); |
franta-hg@136 | 13 |
|
franta-hg@136 | 14 |
?> |