Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103027760
PhutilRemarkupLinebreaksRule.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
Wed, Feb 26, 15:49
Size
236 B
Mime Type
text/x-php
Expires
Fri, Feb 28, 15:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24484133
Attached To
rPHU libphutil
PhutilRemarkupLinebreaksRule.php
View Options
<?php
final
class
PhutilRemarkupLinebreaksRule
extends
PhutilRemarkupRule
{
public
function
apply
(
$text
)
{
if
(
$this
->
getEngine
()->
isTextMode
())
{
return
$text
;
}
return
phutil_escape_html_newlines
(
$text
);
}
}
Event Timeline
Log In to Comment