Beispiel #1
0
 function testShouldUnescapeEscapedCurlyBraces()
 {
     $converter = new JoshRibakoff_Note_RTFToHTML();
     $output = $converter->convert('\\{test\\}');
     $expected = '{test}';
     $this->assertEquals($expected, $output, 'should unescape escaped curly braces');
 }
Beispiel #2
0
 /** 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));
 }