<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use Illuminate\Support\Facades\View; class RenderUtil { public static function view($XlNhR, $CnWtd = array()) { return View::make($XlNhR, $CnWtd)->render(); } public static function viewScript($XlNhR, $CnWtd = array()) { goto p4fLy; XNqa0: return trim($Afv_G); goto XxU1Q; m4IF6: $Afv_G = preg_replace('/^<script>/', '', $Afv_G); goto HJgGJ; p4fLy: $Afv_G = trim(self::view($XlNhR, $CnWtd)); goto m4IF6; HJgGJ: $Afv_G = preg_replace('/<\\/script>$/', '', $Afv_G); goto XNqa0; XxU1Q: } public static function display($Afv_G, $ezt4Q = false) { goto dIqpA; NiJyH: return str_replace(array_keys($sdc8e), array_values($sdc8e), $Afv_G); goto VklDp; dIqpA: if ($ezt4Q) { $Afv_G = htmlspecialchars($Afv_G); } goto Uic1K; Uic1K: $sdc8e = array('@parent' => '&#64;parent'); goto NiJyH; VklDp: } }