本文整理汇总了PHP中esc_entities函数的典型用法代码示例。如果您正苦于以下问题:PHP esc_entities函数的具体用法?PHP esc_entities怎么用?PHP esc_entities使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了esc_entities函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
}
示例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
}
?>
示例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
}
?>
示例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
}
示例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()) {
?>
示例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>
示例7: link_to_question
function link_to_question($question)
{
return link_to(esc_entities($question->getTitle()), '@question?stripped_title=' . $question->getStrippedTitle());
}
示例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 <phoenix@todofixthis.com>
*
* @package sfJwtJsonApiPlugin
* @subpackage modules.jsonapi.templates
*/
echo '<pre>', esc_entities(print_r($result instanceof sfOutputEscaper ? $result->getRawValue() : $result, true)), '</pre>';
示例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
示例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++;
}
?>
示例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).');
示例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 ' | ';
}
示例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">
示例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>
示例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>