Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Ext\AnnotationStripper Interface Reference

A Parsoid extension module defining annotations should define an AnnotationStripper that allows Parsoid to strip annotation markup from an arbitrary string, typically in the content of non-wikitext extensions (such as SyntaxHighlight) in the wt2html direction. More...

Public Member Functions

 stripAnnotations (string $s)
 Strip annotation markup from the provided string $s.
 

Detailed Description

A Parsoid extension module defining annotations should define an AnnotationStripper that allows Parsoid to strip annotation markup from an arbitrary string, typically in the content of non-wikitext extensions (such as SyntaxHighlight) in the wt2html direction.

Member Function Documentation

◆ stripAnnotations()

Wikimedia\Parsoid\Ext\AnnotationStripper::stripAnnotations ( string $s)

Strip annotation markup from the provided string $s.

Parameters
string$s
Returns
string

The documentation for this interface was generated from the following file: