当前位置: 首页>>代码示例>>PHP>>正文


PHP PMF_String::htmlentities方法代码示例

本文整理汇总了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 
开发者ID:atlcurling,项目名称:tkt,代码行数:31,代码来源:record.edit.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']);
     }
 }
开发者ID:ae120,项目名称:phpMyFAQ,代码行数:13,代码来源:Link.php

示例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
开发者ID:kapljr,项目名称:Jay-Kaplan-Farmingdale-BCS-Projects,代码行数:31,代码来源:record.edit.php

示例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'];
}
开发者ID:kapljr,项目名称:Jay-Kaplan-Farmingdale-BCS-Projects,代码行数:31,代码来源:stat.show.php


注:本文中的PMF_String::htmlentities方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。