Files
ops-Gazelle/sections/upload/parse_html.php
T
2025-02-24 14:37:56 +01:00

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']));