/** * Removes all markup from input * * @param string $text Input possibly containing html * @return string */ public function removeMarkup($text) { return \MUtil_String::beforeChars(\MUtil_Html::removeMarkup($text, 'b|i|u|em|strong'), '{'); }
/** * Return the whole input if no charFilters characters where there */ public function testBeforeCharsReturnAll() { $result = MUtil_String::beforeChars('abcdef', 'xyz'); $this->assertEquals($result, 'abcdef'); }