' => '', // empty test '
This is a paragraph with Bold and italics
Also some hrefs and a
few
A token
is not treated as a relative URL' => '
A token [1] is not treated as a relative URL
Links:
------
[1] {action.do_something}
',
);
public function setUp() {
parent::setUp();
}
public function testHtmlToText() {
foreach ($this->_testInput as $html => $text) {
$output = CRM_Utils_String::htmlToText($html);
$this->assertEquals(
trim($output),
trim($text),
"Text Output did not match for $html"
);
}
}
}