Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92660923
ManiphestTaskDescriptionPreviewController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 12:34
Size
639 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 12:34 (2 d)
Engine
blob
Format
Raw Data
Handle
22480794
Attached To
rPH Phabricator
ManiphestTaskDescriptionPreviewController.php
View Options
<?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
Log In to Comment