src/TextExtension.php
public function less($value, $replace = '...', $break = '<!-- pagebreak -->')
    {
        if (!isset($value)) {
            return null;
        }
        
        $pos = stripos($value, $break);
        return $pos === false ? $value : substr($value, 0, $pos) . $replace;
    }
public function less($value, $replace = '...', $break = '<!-- pagebreak -->')
    {
        if (!isset($value)) {
            return null;
        }
        
        $pos = stripos($value, $break);
        return $pos === false ? $value : substr($value, 0, $pos) . $replace;
    }
public function less ( $ value , $ replace = '...' , $ break = '<!-- pagebreak -->' ) { if ( ! isset ( $ value ) ) { return null ; } $ pos = stripos ( $ value , $ break ) ; return $ pos === false ? $ value : substr ( $ value , 0 , $ pos ) . $ replace ; }
Cut of text on a pagebreak.

@param string $value
@param string $replace
@param string $break
@return string
Cut of text on a pagebreak .