Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93556010
PhabricatorMarkupPreviewController.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 29, 17:17
Size
510 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 17:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22664884
Attached To
rPH Phabricator
PhabricatorMarkupPreviewController.php
View Options
<?php
final
class
PhabricatorMarkupPreviewController
extends
PhabricatorController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getUser
();
$text
=
$request
->
getStr
(
'text'
);
$output
=
PhabricatorMarkupEngine
::
renderOneObject
(
id
(
new
PhabricatorMarkupOneOff
())
->
setPreserveLinebreaks
(
true
)
->
setContent
(
$text
),
'default'
,
$viewer
);
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
$output
);
}
}
Event Timeline
Log In to Comment