mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-06 16:13:28 -04:00
12 lines
325 B
PHP
12 lines
325 B
PHP
<?php
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$_POST['html'] || empty($_POST['html'])) {
|
|
error(-1);
|
|
}
|
|
header('Content-type: text/plain');
|
|
// we can assume that everything sent to this endpoint is legacy gazelle html-escaped bbcode
|
|
// hence we run html_unescape() on the result
|
|
echo html_unescape(Util\Text::parseHtml($_POST['html']));
|