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