本文整理汇总了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);
}
示例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>
示例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>
示例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
}
?>
示例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']);
?>
" />
示例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>
示例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>
示例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>
示例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
}
示例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++;
示例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']);
?>
"
示例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>
示例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
}
示例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>
示例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');