<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use Illuminate\Support\Facades\View; class RenderUtil { public static function view($EdxNA, $OTBPk = array()) { return View::make($EdxNA, $OTBPk)->render(); } public static function viewScript($EdxNA, $OTBPk = array()) { goto pY4WY; UAwFH: $DTnPC = preg_replace('/<\\/script>$/', '', $DTnPC); goto zciFF; pY4WY: $DTnPC = trim(self::view($EdxNA, $OTBPk)); goto fcw50; fcw50: $DTnPC = preg_replace('/^<script>/', '', $DTnPC); goto UAwFH; zciFF: return trim($DTnPC); goto CBIsK; CBIsK: } public static function display($DTnPC, $p0Eaz = false) { goto DUzli; UQUEx: return str_replace(array_keys($P9_PX), array_values($P9_PX), $DTnPC); goto Hrc6I; hfZS1: $P9_PX = array('@parent' => '&#64;parent'); goto UQUEx; DUzli: if ($p0Eaz) { $DTnPC = htmlspecialchars($DTnPC); } goto hfZS1; Hrc6I: } }