Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92657125
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
Fri, Nov 22, 11:27
Size
343 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 11:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22470530
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