Example #1
0
 function testShouldUnescapeEscapedCurlyBraces()
 {
     $converter = new JoshRibakoff_Note_RTFToHTML();
     $output = $converter->convert('\\{test\\}');
     $expected = '{test}';
     $this->assertEquals($expected, $output, 'should unescape escaped curly braces');
 }
Example #2
0
File: Note.php Project: alipek/rtf
 /** Formats the note represented by this object as HTML */
 function formatHTML()
 {
     $converter = new JoshRibakoff_Note_RTFToHTML();
     $converter->setColorTable($this->colorTable());
     return $converter->convert(trim($this->rtf_text));
 }