Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891515
PhutilRemarkupEscapeRemarkupRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
343 B
Referenced Files
None
Subscribers
None
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
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:18 (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1109911
Default Alt Text
PhutilRemarkupEscapeRemarkupRule.php (343 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment