Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92931154
PhutilRemarkupEscapeRemarkupRule.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, Nov 24, 22:14
Size
343 B
Mime Type
text/x-php
Expires
Tue, Nov 26, 22:14 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22542501
Attached To
rPHU libphutil
PhutilRemarkupEscapeRemarkupRule.php
View Options
<?php
final
class
PhutilRemarkupEscapeRemarkupRule
extends
PhutilRemarkupRule
{
public
function
getPriority
()
{
return
0
;
}
public
function
apply
(
$text
)
{
if
(
strpos
(
$text
,
"
\1
"
)
===
false
)
{
return
$text
;
}
$replace
=
$this
->
getEngine
()->
storeText
(
"
\1
"
);
return
str_replace
(
"
\1
"
,
$replace
,
$text
);
}
}
Event Timeline
Log In to Comment