/** * @since 2.4 * * @param string $text * * @return text */ public static function removeAnnotation($text) { return InTextAnnotationSanitizer::removeAnnotation($text); }
/** * @dataProvider stripTextWithAnnotationProvider */ public function testStrip($text, $expectedRemoval, $expectedObscuration) { $this->assertEquals($expectedRemoval, InTextAnnotationSanitizer::removeAnnotation($text)); $this->assertEquals($expectedObscuration, InTextAnnotationSanitizer::obscureAnnotation($text)); }