Example #1
0
 /**
  * Return a parsed text to its original form
  *
  * @param  string $xml Parsed text
  * @return string      Original plain text
  */
 public function unparse($xml)
 {
     return \s9e\TextFormatter\Unparser::unparse($xml);
 }
Example #2
0
 /**
  * Unparse XML.
  *
  * @param string $xml
  * @return string
  */
 public function unparse($xml)
 {
     return Unparser::unparse($xml);
 }
Example #3
0
 /**
  * @testdox Characters outside Unicode's BMP are decoded
  */
 public function testUnicodeSMP()
 {
     $this->assertSame('😀', Unparser::unparse('<t>&#128512;</t>'));
 }