clean() public static method

Method to clean the string of any of the standard MS Word based characters and return the newly edited string
public static clean ( string $string, boolean $html = false ) : string
$string string
$html boolean
return string
Beispiel #1
0
 public function testClean()
 {
     $ms = chr(146) . chr(147) . chr(148) . chr(150) . chr(133);
     $this->assertEquals("'\"\"–...", String::clean($ms));
     $this->assertEquals("'""–...", String::clean($ms, true));
 }