$length) { if (!$break_words) { $string = preg_replace('/\s+\S+\s*$/su', '', mb_substr($string, 0, $length + 1, 'utf8')); } return mb_substr($string, 0, $length, 'utf8') . $etc; } else { return $string; } } public static function render_html($args) { return $args ?? ''; } } new Upstudy_Theme_Helper(); }