Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4135725
TranslateAnnotationStripper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
450 B
Referenced Files
None
Subscribers
None
TranslateAnnotationStripper.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\PageTranslation
;
use
Wikimedia\Parsoid\Ext\AnnotationStripper
;
class
TranslateAnnotationStripper
implements
AnnotationStripper
{
private
TranslatablePageParser
$parser
;
public
function
__construct
(
TranslatablePageParser
$parser
)
{
$this
->
parser
=
$parser
;
}
public
function
stripAnnotations
(
string
$s
):
string
{
return
$this
->
parser
->
cleanupTags
(
$s
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 13:20 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
be/e0/17f11fc0233c3a2e30288355517b
Default Alt Text
TranslateAnnotationStripper.php (450 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment