當前位置: 首頁>>代碼示例>>PHP>>正文


PHP print_unescaped函數代碼示例

本文整理匯總了PHP中print_unescaped函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_unescaped函數的具體用法?PHP print_unescaped怎麽用?PHP print_unescaped使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了print_unescaped函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testPrintUnescapedNormalString

 public function testPrintUnescapedNormalString()
 {
     $normalString = "This is a good string!";
     ob_start();
     print_unescaped($normalString);
     $result = ob_get_clean();
     ob_end_clean();
     $this->assertEqual("This is a good string!", $result);
 }
開發者ID:ryanshoover,項目名稱:core,代碼行數:9,代碼來源:template.php

示例2: p

?>
	<a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php 
p($l->t('Online Documentation'));
?>
</a>
	<a class="button newquestion" href="http://forum.owncloud.org" target="_blank"><?php 
p($l->t('Forum'));
?>
</a>
	<?php 
if ($_['admin']) {
    ?>
		<a class="button newquestion" href="https://github.com/owncloud/core/blob/master/CONTRIBUTING.md" target="_blank"><?php 
    p($l->t('Bugtracker'));
    ?>
</a>
	<?php 
}
?>
	<a class="button newquestion" href="http://owncloud.com" target="_blank"><?php 
p($l->t('Commercial Support'));
?>
</a>
</div>
<div class="help-includes">
	<iframe src="<?php 
print_unescaped($_['url']);
?>
" class="help-iframe">abc</iframe>
</div>
開發者ID:omusico,項目名稱:isle-web-framework,代碼行數:30,代碼來源:help.php

示例3: p

					<label class="bold"><?php 
p($l->t('Primary CalDAV address'));
?>
</label>
					<input id="primarycaldav" type="text" value="<?php 
print_unescaped(OCP\Util::linkToRemote('caldav'));
?>
" style="width:90%" readonly>
				</li>
				<li>
					<label class="bold"><?php 
p($l->t('iOS/OS X CalDAV address'));
?>
</label>
					<input id="ioscaldav" type="text" value="<?php 
print_unescaped(OCP\Util::linkToRemote('caldav'));
?>
principals/<?php 
p(urlencode(OCP\USER::getUser()));
?>
/" style="width:90%" readonly>
				</li>
			</ul>
		</div>
	</div>
	<!-- End of settings -->
</div>
<div id="app-content">
	<div id="fullcalendar"><div id="loading" class="icon-loading"></div></div>
	<div id="dialog_holder"></div>
</div>
開發者ID:CDN-Sparks,項目名稱:owncloud,代碼行數:31,代碼來源:calendar.php

示例4: p

</form>
<?php 
if (!empty($_['alt_login'])) {
    ?>
<form id="alternative-logins">
	<fieldset>
		<legend><?php 
    p($l->t('Alternative Logins'));
    ?>
</legend>
		<ul>
			<?php 
    foreach ($_['alt_login'] as $login) {
        ?>
				<li><a class="button" href="<?php 
        print_unescaped($login['href']);
        ?>
" ><?php 
        p($login['name']);
        ?>
</a></li>
			<?php 
    }
    ?>
		</ul>
	</fieldset>
</form>
<?php 
}
?>
開發者ID:droiter,項目名稱:openwrt-on-android,代碼行數:30,代碼來源:login.php

示例5: p

                    <?php 
}
?>
                </span>
            </th>
            <th id="headerSize"><?php 
p($l->t('Size'));
?>
</th>
            <th id="headerDate">
                <span id="modified"><?php 
p($l->t('Modified'));
?>
</span>
            </th>
        </tr>
    </thead>
    <tbody id="fileList">
        <?php 
print_unescaped($_['fileList']);
?>
    </tbody>
</table>
<div id="editor"></div>

<!-- config hints for javascript -->
<input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php 
p($_['allowZipDownload']);
?>
" />
開發者ID:DOM-Digital-Online-Media,項目名稱:apps,代碼行數:30,代碼來源:index.php

示例6: script

<?php

script('user_permission', 'script');
style('user_permission', 'style');
?>

<div id="app">
	<div id="app-navigation">
		<?php 
print_unescaped($this->inc('part.navigation'));
?>
		<?php 
print_unescaped($this->inc('part.settings'));
?>
	</div>

	<div id="app-content">
		<div id="app-content-wrapper">
			<?php 
print_unescaped($this->inc('part.content'));
?>
		</div>
	</div>
</div>
開發者ID:yheric455042,項目名稱:owncloud82,代碼行數:24,代碼來源:main.php

示例7: p

        ?>
			<link><?php 
        p($activity['link']);
        ?>
</link>
<?php 
    }
    if (!empty($activity['timestamp'])) {
        ?>
			<pubDate><?php 
        p(date('r', $activity['timestamp']));
        ?>
</pubDate>
<?php 
    }
    if (!empty($activity['message'])) {
        ?>
			<description><![CDATA[<?php 
        print_unescaped(str_replace("\n", '<br />', \OCP\Util::sanitizeHTML($activity['messageformatted']['full'])));
        ?>
]]></description>
<?php 
    }
    ?>
		</item>
<?php 
}
?>
	</channel>
</rss>
開發者ID:enoch85,項目名稱:owncloud-testserver,代碼行數:30,代碼來源:rss.php

示例8: p

    ?>
">
							<div class="icon-loading-dark" style="display:none;"></div>
							<span>
								<?php 
    p($l->t('Apps'));
    ?>
							</span>
						</a>
					</li>
				<?php 
}
?>

				</ul>
			</div>
		</div></nav>

		<div id="content-wrapper">
			<div id="content" class="app-<?php 
p($_['appid']);
?>
" role="main">
				<?php 
print_unescaped($_['content']);
?>
			</div>
		</div>
	</body>
</html>
開發者ID:evanjt,項目名稱:core,代碼行數:30,代碼來源:layout.user.php

示例9: p

</div>

<?php 
        }
        $lastDate = $currentDate;
        ?>
<div class="section activity-section group" data-date="<?php 
        p($currentDate);
        ?>
">
	<h2>
		<span class="tooltip" title="<?php 
        p($dateTimeFormatter->formatDate($event['timestamp']));
        ?>
">
			<?php 
        p(ucfirst($currentDate));
        ?>
		</span>
	</h2>
	<div class="boxcontainer">
<?php 
    }
    print_unescaped($displayHelper->show($event));
}
if (!empty($_['activity'])) {
    ?>
	</div>
</div>
<?php 
}
開發者ID:AARNet,項目名稱:activity,代碼行數:31,代碼來源:stream.list.php

示例10: p

" data-deprecate-to="<?php 
            p($deprecateTo->getIdentifier());
            ?>
" />
				<?php 
        } else {
            ?>
					<input type="checkbox" id="allowUserMountingBackends<?php 
            p($i);
            ?>
" class="checkbox" name="allowUserMountingBackends[]" value="<?php 
            p($backend->getIdentifier());
            ?>
" <?php 
            if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) {
                print_unescaped(' checked="checked"');
            }
            ?>
 />
					<label for="allowUserMountingBackends<?php 
            p($i);
            ?>
"><?php 
            p($backend->getText());
            ?>
</label> <br />
				<?php 
        }
        ?>
				<?php 
        $i++;
開發者ID:drognisep,項目名稱:Portfolio-Site,代碼行數:31,代碼來源:settings.php

示例11: p

    ?>
" class="svg action delete"
				title="<?php 
    p($l->t('Unshare'));
    ?>
">
		</span>
	</li>
<?php 
}
?>
</ul>
<?php 
if (!$eventsharees) {
    $nobody = $l->t('Nobody');
    print_unescaped('<div id="sharedWithNobody">' . OC_Util::sanitizeHTML($nobody) . '</div>');
}
?>
<br />
<strong><?php 
p($l->t('Shared via calendar'));
?>
</strong>
<ul class="sharedby calendarlist">
<?php 
foreach ($calsharees as $sharee) {
    ?>
	<li data-share-with="<?php 
    p($sharee['share_with']);
    ?>
"
開發者ID:CDN-Sparks,項目名稱:owncloud,代碼行數:31,代碼來源:part.share.php

示例12: print_unescaped

</label>
				<img class="svg" src="<?php 
    print_unescaped(image_path('', 'actions/user.svg'));
    ?>
" alt=""/>
				<?php 
    if ($_['isEncrypted']) {
        ?>
				<br /><br />
				<?php 
        print_unescaped($l->t("Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?"));
        ?>
<br />
				<input type="checkbox" name="continue" value="Yes" />
					<?php 
        print_unescaped($l->t('Yes, I really want to reset my password now'));
        ?>
<br/><br/>
				<?php 
    }
    ?>
			</p>
			<input type="submit" id="submit" value="<?php 
    echo $l->t('Request reset');
    ?>
" />
		<?php 
}
?>
	</fieldset>
</form>
開發者ID:CDN-Sparks,項目名稱:owncloud,代碼行數:31,代碼來源:lostpassword.php

示例13: p

    }
    ?>
 value='none'>
				<?php 
    p($l->t('Unlimited'));
    ?>
			</option>
			<?php 
    foreach ($_['quota_preset'] as $preset) {
        ?>
				<?php 
        if ($preset !== 'default') {
            ?>
					<option <?php 
            if ($_['default_quota'] == $preset) {
                print_unescaped('selected="selected"');
            }
            ?>
 value='<?php 
            p($preset);
            ?>
'>
						<?php 
            p($preset);
            ?>
					</option>
				<?php 
        }
        ?>
			<?php 
    }
開發者ID:evanjt,項目名稱:core,代碼行數:31,代碼來源:part.setquota.php

示例14: p

?>
"/></span>
	<span class="ldap_config_state_indicator"></span> <span class="ldap_config_state_indicator_sign"></span>
	<button class="ldap_action_back invisible" name="ldap_action_back"
			type="button">
		<?php 
p($l->t('Back'));
?>
	</button>
	<button class="ldap_action_continue" name="ldap_action_continue" type="button">
		<?php 
p($l->t('Continue'));
?>
	</button>
	<a href="<?php 
p(link_to_docs('admin-ldap'));
?>
"
		target="_blank" rel="noreferrer">
		<img src="<?php 
print_unescaped(image_path('', 'actions/info.png'));
?>
"
			style="height:1.75ex" />
		<span class="ldap_grey"><?php 
p($l->t('Help'));
?>
</span>
	</a>
</div>
開發者ID:rchicoli,項目名稱:owncloud-core,代碼行數:30,代碼來源:part.wizardcontrols.php

示例15: print_unescaped

<?php

OCP\Util::addStyle('lostpassword', 'resetpassword');
?>
<form action="<?php 
print_unescaped($_['link']);
?>
" id="reset-password" method="post">
	<fieldset>
		<p>
			<label for="password" class="infield"><?php 
p($l->t('New password'));
?>
</label>
			<input type="password" name="password" id="password" value="" placeholder="<?php 
p($l->t('New Password'));
?>
" required />
			<img class="svg" id="password-icon" src="<?php 
print_unescaped(image_path('', 'actions/password.svg'));
?>
" alt=""/>
		</p>
		<input type="submit" id="submit" value="<?php 
p($l->t('Reset password'));
?>
" />
	</fieldset>
</form>
<?php 
OCP\Util::addScript('core', 'lostpassword');
開發者ID:olucao,項目名稱:owncloud-core,代碼行數:31,代碼來源:resetpassword.php


注:本文中的print_unescaped函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。