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