Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96057263
PhutilRemarkupRuleItalic.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, Dec 22, 04:48
Size
229 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 04:48 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
23105713
Attached To
rPHU libphutil
PhutilRemarkupRuleItalic.php
View Options
<?php
/**
* @group markup
*/
final
class
PhutilRemarkupRuleItalic
extends
PhutilRemarkupRule
{
public
function
apply
(
$text
)
{
return
preg_replace
(
'@(?<!:)//(.+?)//@s'
,
'<em>
\1
</em>'
,
$text
);
}
}
Event Timeline
Log In to Comment