/** * @param string $string * @param bool $uiAllowedTags * @return string */ public function stripTags($string, $uiAllowedTags = false) { if ($uiAllowedTags) { return strip_tags($string, $this->htmlTagProvider->getAllowedTags()); } return trim(strip_tags($string)); }
public function testGetAllowedTags() { $allowedTags = $this->htmlTagProvider->getAllowedTags(); $this->assertEquals($this->allowedTags, $allowedTags); }