/** * @param $string * @return string */ public static function html($string) { return Str::htmlEnt($string); }
public function testHtmlentities() { is('One & Two <> &mdash;', Str::htmlEnt('One & Two <> —')); is('One & Two <> —', Str::htmlEnt('One & Two <> —', true)); }