1<?php 2/** 3 * Created by IntelliJ IDEA. 4 * User: andi 5 * Date: 2/11/17 6 * Time: 10:26 AM 7 */ 8 9namespace dokuwiki\Action; 10 11class Preview extends Edit { 12 13 public function preProcess() { 14 header('X-XSS-Protection: 0'); // FIXME is it okay to send it right away here? 15 act_draftsave('fixme'); // reimplement thisutility function and take of duplicate code in ajax.php 16 17 parent::preProcess(); 18 } 19 20 public function tplContent() { 21 global $TEXT; 22 html_edit(); 23 html_show($TEXT); 24 } 25 26} 27