Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123658475
PhutilRemarkupRuleLinebreaks.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
Mon, Jul 28, 22:53
Size
263 B
Mime Type
text/x-php
Expires
Wed, Jul 30, 22:53 (2 d)
Engine
blob
Format
Raw Data
Handle
27733882
Attached To
rPHU libphutil
PhutilRemarkupRuleLinebreaks.php
View Options
<?php
/**
* @group markup
*/
final
class
PhutilRemarkupRuleLinebreaks
extends
PhutilRemarkupRule
{
public
function
apply
(
$text
)
{
if
(
$this
->
getEngine
()->
isTextMode
())
{
return
$text
;
}
return
phutil_escape_html_newlines
(
$text
);
}
}
Event Timeline
Log In to Comment