static function take_stash() { $stash = self::$_stash; if (self::$_stash_inscript) { $stash .= "</script>"; } self::$_stash = ""; self::$_stash_inscript = false; return $stash; }