<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use Illuminate\Support\Facades\View; class RenderUtil { public static function view($Etyzz, $SjN8A = array()) { return View::make($Etyzz, $SjN8A)->render(); } public static function viewScript($Etyzz, $SjN8A = array()) { goto HX2PS; avxpA: $cgjRu = preg_replace('/<\\/script>$/', '', $cgjRu); goto lYEPA; HX2PS: $cgjRu = trim(self::view($Etyzz, $SjN8A)); goto TM4aq; TM4aq: $cgjRu = preg_replace('/^<script>/', '', $cgjRu); goto avxpA; lYEPA: return trim($cgjRu); goto kcsxL; kcsxL: } public static function display($cgjRu, $yEod3 = false) { goto KIeiG; q84J1: $BmggY = array('@parent' => '&#64;parent'); goto rl2sR; KIeiG: if ($yEod3) { $cgjRu = htmlspecialchars($cgjRu); } goto q84J1; rl2sR: return str_replace(array_keys($BmggY), array_values($BmggY), $cgjRu); goto fWRdC; fWRdC: } }