yiisoft/yii — Issue #352: Suggestion: CVarDumper can dump out formatted html string to gain the readability 
Author: apychan
Created: 2012-02-17 07:49:29+00:00
State: open

Add
private static $_echo;

Change
public static function dump($var,$depth=10,$highlight=false)
{
self::$_echo=self::dumpAsString($var,$depth,$highlight);
self::$_echo = preg_replace("/\]\=\>\n(\s+)/m", "] => ", self::$_echo);
self::$_echo = '

'.self::$_echo.'

';
echo self::$_echo;
}