本文整理汇总了PHP中PMF_String::htmlentities方法的典型用法代码示例。如果您正苦于以下问题:PHP PMF_String::htmlentities方法的具体用法?PHP PMF_String::htmlentities怎么用?PHP PMF_String::htmlentities使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PMF_String
的用法示例。
在下文中一共展示了PMF_String::htmlentities方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
}
?>
" />
</p>
<p>
<label for="answer"><?php
print $PMF_LANG["ad_entry_content"];
?>
</label>
</p>
<noscript>Please enable JavaScript to use the WYSIWYG editor!</noscript>
<textarea id="answer" name="answer" cols="72" rows="16" style="width: 640px; height: 480px;">
<?php
if (isset($faqData['content'])) {
print trim(PMF_String::htmlentities($faqData['content']));
}
?>
</textarea>
<?php
if ($action == 'copyentry') {
$faqData['lang'] = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
}
if ($permission['addattachment']) {
?>
<p>
<label><?php
print $PMF_LANG['ad_menu_attachments'];
?>
:</label>
<?php
示例2: getCurrentUrl
/**
* Returns the current URL
*
* @return string
*/
public function getCurrentUrl()
{
if (!empty($_SERVER['HTTPS'])) {
return 'https://' . $_SERVER['SERVER_NAME'] . PMF_String::htmlentities($_SERVER['REQUEST_URI']);
} else {
return 'http://' . $_SERVER['SERVER_NAME'] . PMF_String::htmlentities($_SERVER['REQUEST_URI']);
}
}
示例3: isset
$allUsers = false;
$restrictedUsers = true;
}
// Group permissions
$groupPermission = $faq->getPermission('group', $faqData['id']);
if (count($groupPermission) == 0 || $groupPermission[0] == -1) {
$allGroups = true;
$restrictedGroups = false;
$groupPermission[0] = -1;
} else {
$allGroups = false;
$restrictedGroups = true;
}
// Set data for forms
$faqData['title'] = isset($faqData['title']) ? PMF_String::htmlspecialchars($faqData['title']) : '';
$faqData['content'] = isset($faqData['content']) ? trim(PMF_String::htmlentities($faqData['content'])) : '';
$faqData['tags'] = isset($faqData['tags']) ? PMF_String::htmlspecialchars($faqData['tags']) : '';
$faqData['keywords'] = isset($faqData['keywords']) ? PMF_String::htmlspecialchars($faqData['keywords']) : '';
$faqData['author'] = isset($faqData['author']) ? PMF_String::htmlspecialchars($faqData['author']) : $user->getUserData('display_name');
$faqData['email'] = isset($faqData['email']) ? PMF_String::htmlspecialchars($faqData['email']) : $user->getUserData('email');
$faqData['isoDate'] = isset($faqData['date']) ? $faqData['date'] : date('Y-m-d H:i');
$faqData['date'] = isset($faqData['date']) ? $date->format($faqData['date']) : $date->format(date('Y-m-d H:i'));
$faqData['changed'] = isset($faqData['changed']) ? $faqData['changed'] : '';
if (isset($faqData['comment']) && $faqData['comment'] == 'y') {
$faqData['comment'] = ' checked="checked"';
} elseif ($faqConfig->get('records.defaultAllowComments')) {
$faqData['comment'] = ' checked="checked"';
} else {
$faqData['comment'] = '';
}
// Start header
示例4:
<tr>
<td><?php
echo $PMF_LANG["ad_sess_browser"];
?>
</td>
<td><?php
echo PMF_String::htmlentities($data[6]);
?>
</td>
</tr>
<tr>
<td><?php
echo $PMF_LANG["ad_sess_ip"];
?>
:</td>
<td><?php
echo PMF_String::htmlentities($data[3]);
?>
</td>
</tr>
<?php
}
}
}
?>
</tbody>
</table>
<?php
} else {
echo $PMF_LANG['err_NotAuth'];
}