Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102051997
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
Sun, Feb 16, 15:00
Size
236 B
Mime Type
text/x-php
Expires
Tue, Feb 18, 15:00 (2 d)
Engine
blob
Format
Raw Data
Handle
24271112
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