source: spip-zone/_plugins_/_typo_/barre_typo_enrichie/exec/article_preview.php @ 5436

Last change on this file since 5436 was 5436, checked in by real3t@…, 15 years ago

Correction proposée par triton-pointcentral pour gérer le cas des site qui ne sont pas en utf-8 (quelle idée !)

File size: 371 bytes
Line 
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3
4include_spip("inc/meta");
5include_spip("inc/texte");
6
7function exec_article_preview_dist()
8{
9        lire_metas();
10        header('Content-Type: text/html;charset='.lire_meta('charset'));
11        echo "<meta http-equiv='Content-Type' content='text/html; charset=".lire_meta('charset')." />";
12        echo propre($_POST['texte']);
13}
14?>
Note: See TracBrowser for help on using the repository browser.