/var/www/vhosts/nabawater/vendor/yiisoft/yii2/widgets
NameSizeModeActions
ActiveField.php402660644editdlrm
ActiveForm.php175180644editdlrm
ActiveFormAsset.php5210644editdlrm
BaseListView.php104540644editdlrm
Block.php17790644editdlrm
Breadcrumbs.php67490644editdlrm
ContentDecorator.php21660644editdlrm
DetailView.php111810644editdlrm
FragmentCache.php55440644editdlrm
InputWidget.php35200644editdlrm
LinkPager.php99840644editdlrm
LinkSorter.php23580644editdlrm
ListView.php78790644editdlrm
MaskedInput.php70510644editdlrm
MaskedInputAsset.php6530644editdlrm
Menu.php142030644editdlrm
Pjax.php78340644editdlrm
PjaxAsset.php5460644editdlrm
Spaceless.php20090644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/yiisoft/yii2/widgets/Spaceless.php (2009B)
* * *
* *
* * * ``` * * This example will generate the following HTML: * * ```html * *
* ``` * * This method is not designed for content compression (you should use `gzip` output compression to * achieve it). Main intention is to strip out extra whitespace characters between HTML tags in order * to avoid browser rendering quirks in some circumstances (e.g. newlines between inline-block elements). * * Note, never use this method with `pre` or `textarea` tags. It's not that trivial to deal with such tags * as it may seem at first sight. For this case you should consider using * [HTML Tidy Project](http://tidy.sourceforge.net/) instead. * * @see http://tidy.sourceforge.net/ * @author resurtm * @since 2.0 */ class Spaceless extends Widget { /** * Starts capturing an output to be cleaned from whitespace characters between HTML tags. */ public function init() { parent::init(); ob_start(); ob_implicit_flush(false); } /** * Marks the end of content to be cleaned from whitespace characters between HTML tags. * Stops capturing an output and echoes cleaned result. */ public function run() { echo trim(preg_replace('/>\s+<', ob_get_clean())); } }