本文整理汇总了PHP中esc_entities函数的典型用法代码示例。如果您正苦于以下问题:PHP esc_entities函数的具体用法?PHP esc_entities怎么用?PHP esc_entities使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了esc_entities函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: esc_entities
?>
<input type="hidden" name="invite[emails][<?php
echo $k;
?>
][first_name]" value="<?php
echo esc_entities($contact["first_name"]);
?>
" />
<input type="hidden" name="invite[emails][<?php
echo $k;
?>
][last_name]" value="<?php
echo esc_entities($contact["last_name"]);
?>
" />
<input type="hidden" name="invite[emails][<?php
echo $k;
?>
][email]" value="<?php
echo esc_entities($contact["email"]);
?>
" />
<?php
}
?>
</form>
<script type="text/javascript">
$('webmail_form').submit();
</script>
<?php
}
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:inviteWebmailSuccess.php
示例2: image_tag
<td width="20" valign="middle"><?php
echo image_tag("sn_icons/" . SNPeer::$SN_ICONS[$sn["network"]], array('absolute' => true));
?>
</td>
<td align="left">
<?php
if (SNPeer::$SN_LINKS[$sn["network"]]) {
?>
<a href="<?php
echo sprintf(SNPeer::$SN_LINKS[$sn["network"]][0], esc_entities($sn["identifier"]));
?>
" title="<?php
echo sprintf(__(SNPeer::$SN_LINKS[$sn["network"]][1]), esc_entities($sn["identifier"]));
?>
"><?php
echo esc_entities(truncate_text($sn["identifier"], 55));
?>
</a>
<?php
} else {
echo $sn["identifier"];
}
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:_box.js.php
示例3: __
<dl>
<dd id="im-chat"><?php
echo __("IMs");
?>
</dd>
<?php
foreach ($jotag->getTagIMsJoinIM() as $k => $im) {
?>
<?php
if ($k) {
?>
</dl><dl><?php
}
?>
<dt class="column-1"><?php
echo esc_entities(ContactPeer::getTypeName(ContactPeer::$IM_TYPES, $im->getIm()));
?>
</dt>
<dt>
<?php
echo image_tag('im_icons/' . IMPeer::$IM_ICONS[$im->getIm()->getNetwork()], array('alt' => IMPeer::$IM_NETWORKS[$im->getIm()->getNetwork()], 'title' => IMPeer::$IM_NETWORKS[$im->getIm()->getNetwork()]));
?>
</dt>
<?php
}
?>
</dl>
<?php
}
?>
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:viewErrorTmp.php
示例4: foreach
?>
</p>
<?php
if ($invite->getInviteTagsJoinTag()) {
?>
<p><?php
echo $user;
?>
's JoTAGs:</p>
<ul>
<?php
foreach ($invite->getInviteTagsJoinTag() as $tag) {
?>
<li><?php
echo $tag->getTag()->getJotag();
?>
</li>
<?php
}
?>
</ul>
<?php
}
if ($message) {
?>
<p>----<br/><?php
echo nl2br(esc_entities($message));
?>
<br/>----</p>
<?php
}
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:_invite.html.php
示例5: foreach
foreach ($jotag->getTagIMsJoinIM() as $k => $im) {
if ($Icons_added >= 3) {
break;
}
?>
<?php
if (@IMPeer::$IM_TOOLBAR[$im->getIM()->getNetwork()] && @IMPeer::$IM_NETWORKS_IDS[$im->getIm()->getNetwork()] && !@$IM_shown[$im->getIm()->getNetwork()]) {
?>
<a class="<?php
echo strtolower(IMPeer::$IM_NETWORKS_IDS[$im->getIm()->getNetwork()]);
?>
" href="<?php
echo sprintf(IMPeer::$IM_LINKS[$im->getIM()->getNetwork()][0], esc_entities($im->getIM()->getIdentifier()));
?>
" title="<?php
echo sprintf(__(IMPeer::$IM_LINKS[$im->getIM()->getNetwork()][1]), esc_entities($im->getIM()->getIdentifier()));
?>
" id="<?php
echo strtolower(IMPeer::$IM_NETWORKS_IDS[$im->getIm()->getNetwork()]);
?>
"><?php
echo strtoupper(IMPeer::$IM_NETWORKS[$im->getIm()->getNetwork()]);
?>
</a>
<?php
$IM_shown[$im->getIm()->getNetwork()] = true;
$Icons_added++;
}
}
if ($sf_user->isAuthenticated()) {
?>
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:_toolbar.php
示例6: get_partial
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
echo get_partial('default/pager', array('pager' => $pager));
?>
<div class="search">
<form action="<?php
echo url_for(array('module' => 'repository', 'action' => 'list'));
?>
">
<input name="subquery" value="<?php
echo esc_entities($sf_request->subquery);
?>
"/>
<input class="form-submit" type="submit" value="<?php
echo __('Search %1%', array('%1%' => sfConfig::get('app_ui_label_repository')));
?>
"/>
</form>
</div>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:30,代码来源:browseSuccess.php
示例7: link_to_question
function link_to_question($question)
{
return link_to(esc_entities($question->getTitle()), '@question?stripped_title=' . $question->getStrippedTitle());
}
开发者ID:emacsattic,项目名称:symfony,代码行数:4,代码来源:QuestionHelper.php
示例8: esc_entities
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/** Outputs JsonApi responses in dev mode.
*
* Note that we are using a template instead of sfActions->renderText() so that
* we can also render the sfWebDebugToolbar.
*
* @author Phoenix Zerin <[email protected]>
*
* @package sfJwtJsonApiPlugin
* @subpackage modules.jsonapi.templates
*/
echo '<pre>', esc_entities(print_r($result instanceof sfOutputEscaper ? $result->getRawValue() : $result, true)), '</pre>';
开发者ID:JWT-OSS,项目名称:sfJwtJsonApiPlugin,代码行数:30,代码来源:apiDebug.php
示例9: sprintf
if (++$counter <= $max_contacts) {
?>
<?php
if (IMPeer::$IM_LINKS[$im["network"]]) {
?>
<p><a href="<?php
echo sprintf(IMPeer::$IM_LINKS[$im["network"]][0], esc_entities($im["identifier"]));
?>
" title="<?php
echo sprintf(__(IMPeer::$IM_LINKS[$im["network"]][1]), esc_entities($im["identifier"]));
?>
" class="<?php
echo IMPeer::$IM_NETWORKS_IDS[$im["network"]];
?>
"><?php
echo esc_entities(truncate_text($im["identifier"], $max_chars));
?>
</a></p>
<?php
} else {
?>
<p><a href="#" onclick="return false"><?php
echo $im["identifier"];
?>
</a></p><?php
}
?>
<?php
}
?>
<?php
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:_dropdown_general.js.php
示例10: esc_entities
if ($email["registered"]) {
?>
disabled<?php
} else {
?>
checked<?php
}
?>
/>
</td>
<td width="250px"><?php
echo esc_entities(substr(trim($email["first_name"] . " " . $email["last_name"]), 0, 30));
?>
</td>
<td><?php
echo esc_entities(substr($email["email"], 0, 45));
if ($email["registered"]) {
?>
<em>(<?php
echo __("already member");
?>
</em><?php
}
?>
</td>
</tr>
<?php
if (!$email["registered"]) {
$k++;
}
?>
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:inviteStep2Success.php
示例11: foreach
}
?>
<tr valign="top">
<td>
<input name="rad_note"/>
</td><td>
<select name="rad_note_type" id="rad_title_note_type">
<?php
foreach (QubitTerm::getOptionsForSelectList(QubitTaxonomy::RAD_NOTE_ID) as $value => $label) {
?>
<option value="<?php
echo esc_entities($value);
?>
"><?php
echo esc_entities($label);
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
</tbody>
</table>
<div class="description">
<?php
echo __('Select a note type from the drop-down menu and enter note text in accordance with the following sections in RAD: 1.5E (Accompanying material); 1.8 B11 (Alpha-numeric designations); 1.8B9b (Conservation); 1.8B7 (Edition); 1.8B9 (Physical Description); 1.8B16b (Rights); 1.8B21 (General note).');
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:editSuccess.php
示例12: foreach
<table>
<tbody>
<?php
foreach ($role_list as $role) {
?>
<tr>
<td><?php
echo $role->getTitle();
?>
</td>
<td>
<?php
echo jq_link_to_function('edit', "fillForm(" . $role->getId() . ", '" . addslashes($role->getTitle(ESC_RAW)) . "');", array('class' => 'link-edit'));
?>
<?php
echo link_to('remove', 'role/delete?id=' . $role->getId(), array('class' => 'link-de-activate', 'method' => 'delete', 'confirm' => 'Are you sure to delete role \'' . esc_entities(addslashes($role->getTitle(ESC_RAW))) . '\''));
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
Items per page:
<?php
foreach ($max_array as $i => $v) {
if ($i) {
echo ' | ';
}
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:_list.php
示例13: use_helper
<?php
use_helper('Date', 'Global');
?>
<h2><?php
echo esc_entities($question->getTitle());
?>
</h2>
<p><?php
echo __('asked by %1% %2% ago', array('%1%' => '<strong>' . $question->getUser() . '</strong>', '%2%' => time_ago_in_words($question->getCreatedAt('U'))));
?>
</p>
<?php
echo __('%1% askeet users are interested by this question', array('%1%' => $interested_users_pager->getNbResults()));
?>
<ul>
<?php
foreach ($interested_users_pager->getResults() as $interested_user) {
?>
<li><?php
echo link_to($interested_user->__toString(), '@user_profile?nickname=' . $interested_user->getNickname());
?>
</li>
<?php
}
?>
</ul>
<div id="users_pager">
开发者ID:emacsattic,项目名称:symfony,代码行数:31,代码来源:listInterestedBySuccess.php
示例14: esc_entities
<field name="bibliographicCitation"/><!-- eg. Department of the Interior, and Keyes, Perley G., [Letter] 1904 July 19, Ottawa [to] Messrs. Munson and Allan, Barristers, Winnipeg, Manitoba, 1904 -->
<field name="fSpatial"/>
<field name="fSubject"/>
<field name="abstract"/>
<!-- fields used in OurOntario toolkit for discovery or faceting -->
<field name="itemLatitude"/>
<field name="itemLongitude"/>
<field name="dateOldest"/>
<field name="dateNewest"/>
<!-- associated with eliciting and managing user comments -->
<field name="mystery"/>
<field name="featureMystery"/>
<field name="comment"/>
<field name="featureComment"/>
<field name="site"><?php
echo esc_entities($object->getRepository());
?>
</field>
<field name="recordOwner"><?php
echo esc_entities($object->getInstitutionResponsibleIdentifier());
?>
</field>
<field name="searchSet">Alouette</field><!-- multiple eg. Alouette, BritishColumbia, Ontario -->
</doc>
<?php
}
?>
</add>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:30,代码来源:alouetteSuccess.xml.php
示例15: foreach
if (@$contacts["IM"]) {
?>
<li><b>IMs:</b>
<ul>
<?php
foreach ($contacts["IM"] as $obj) {
?>
<li><b><?php
echo ContactPeer::getTypeName(ContactPeer::$IM_TYPES, $obj);
?>
(<?php
echo IMPeer::$IM_NETWORKS[$obj->getNetwork()];
?>
):</b>
<?php
echo esc_entities($obj->getIdentifier());
?>
<?php
}
?>
</ul>
</li>
<?php
}
?>
</ul>
<p>You can view the updated information by clicking the following link:</p>
<p><?php
echo link_to(url_for('@view_jotag?jotag=' . $jotag, true), '@view_jotag?jotag=' . $jotag, array('absolute' => true));
?>
</p>
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:_changedJotag.html.php
示例16: __
</div>
<?php
if ($user->getInterests()) {
?>
<div class="section">
<h2><?php
echo __("Interested JoTAGs");
?>
</h2>
<?php
foreach ($user->getInterests() as $interest) {
?>
<p>
<strong><?php
echo esc_entities($interest->getJotag());
?>
</strong>
<span>
<?php
if ($interest->isAvailable()) {
?>
<?php
echo __("this Jotag is available!");
?>
<?php
}
?>
</span>
<span class="actions">
开发者ID:psskhal,项目名称:symfony-sample,代码行数:31,代码来源:accountSuccess.php
示例17: esc_js
/**
* A function that c-escapes a string after applying {@link esc_entities()}. The
* assumption is that the value will be used to generate dynamic HTML in some
* way and the safest way to prevent mishap is to assume the value should have
* HTML entities set properly.
*
* The {@link esc_js_no_entities()} method should be used to escape a string
* that is ultimately not going to end up as text in an HTML document.
*
* @param string $value the value to escape
* @return string the escaped value
*/
function esc_js($value)
{
return esc_js_no_entities(esc_entities($value));
}
开发者ID:seven07ve,项目名称:vendorepuestos,代码行数:16,代码来源:EscapingHelper.php
示例18: esc_entities
public static function esc_entities($content)
{
return esc_entities($content);
}
开发者ID:auphau,项目名称:joyreactor,代码行数:4,代码来源:SmartyEscapingHelper.php
示例19: link_to
<?php
echo link_to('Close', array('module' => 'search', 'action' => 'index', 'query' => $sf_request->query));
?>
</div>
<?php
}
?>
<h1><?php
echo __('Search results');
?>
</h1>
<h1 class="label">
<?php
echo esc_entities($title);
?>
<div id="action-icons">
<?php
echo link_to(image_tag('printer-icon.png', array('alt' => __('Print'))), array('module' => 'search', 'action' => 'index', 'query' => $sf_request->query, 'media' => 'print'), array('title' => __('Print')));
?>
</div>
</h1>
<?php
if (isset($error)) {
?>
<div class="error">
<ul>
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:31,代码来源:indexSuccess.php
示例20: tags_for_question
echo tags_for_question($question);
?>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
<h3><?php
echo __('interests');
?>
</h3>
<ul class="plain_list">
<?php
foreach ($interests as $interest) {
$question = $interest->getQuestion();
?>
<li><?php
echo link_to(esc_entities($question->getTitle()), '@question?stripped_title=' . $question->getStrippedTitle());
?>
</li>
<?php
}
?>
</ul>
开发者ID:emacsattic,项目名称:symfony,代码行数:30,代码来源:showSuccess.php
注:本文中的esc_entities函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论