function formatPlaintext($params = array()) { $converter = new JoshRibakoff_Note_RTFToPlainText(); if (isset($params['newline'])) { $converter->setNewline($params['newline']); } return $converter->convert($this->rtf_text); }
function testShouldTrimPrefixingWhitespace() { $converter = new JoshRibakoff_Note_RTFToPlainText(); $output = $converter->convert(" test"); $this->assertEquals("test", $output, 'should trim prefixing whitespace'); }