Page MenuHomec4science

ManiphestTaskDescriptionPreviewController.php
No OneTemporary

File Metadata

Created
Fri, Nov 22, 12:34

ManiphestTaskDescriptionPreviewController.php

<?php
/**
* @group maniphest
*/
final class ManiphestTaskDescriptionPreviewController
extends ManiphestController {
public function processRequest() {
$request = $this->getRequest();
$description = $request->getStr('description');
$task = new ManiphestTask();
$task->setDescription($description);
$output = PhabricatorMarkupEngine::renderOneObject(
$task,
ManiphestTask::MARKUP_FIELD_DESCRIPTION,
$request->getUser());
$content = hsprintf(
'<div class="phabricator-remarkup">%s</div>',
$output);
return id(new AphrontAjaxResponse())
->setContent($content);
}
}

Event Timeline