Debian Codegraph @

vendor/wikimedia/parsoid/src/Ext/AnnotationStripper.php

raw
1 <?php
2
3 namespace Wikimedia\Parsoid\Ext;
4
5 /**
6 * A Parsoid extension module defining annotations should define an AnnotationStripper
7 * that allows Parsoid to strip annotation markup from an arbitrary string, typically in
8 * the content of non-wikitext extensions (such as SyntaxHighlight) in the wt2html direction.
9 */
10 interface AnnotationStripper {
11 /**
12 * Strip annotation markup from the provided string $s
13 * @param string $s
14 * @return string
15 */
16 public function stripAnnotations( string $s ): string;
17
18 }