/**
  * 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'), '{');
 }
Exemple #2
0
 /**
  * Return the whole input if no charFilters characters where there
  */
 public function testBeforeCharsReturnAll()
 {
     $result = MUtil_String::beforeChars('abcdef', 'xyz');
     $this->assertEquals($result, 'abcdef');
 }