Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81305233
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
Thu, Sep 5, 06:41
Size
583 B
Mime Type
text/x-php
Expires
Sat, Sep 7, 06:41 (2 d)
Engine
blob
Format
Raw Data
Handle
20547114
Attached To
rPH Phabricator
ManiphestTaskDescriptionPreviewController.php
View Options
<?php
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
=
phutil_tag_div
(
'phabricator-remarkup'
,
$output
);
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment