當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CStringHelper::isHTML方法代碼示例

本文整理匯總了PHP中CStringHelper::isHTML方法的典型用法代碼示例。如果您正苦於以下問題:PHP CStringHelper::isHTML方法的具體用法?PHP CStringHelper::isHTML怎麽用?PHP CStringHelper::isHTML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CStringHelper的用法示例。


在下文中一共展示了CStringHelper::isHTML方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onDiscussionDisplay

 public function onDiscussionDisplay($row)
 {
     CError::assert($row->message, '', '!empty', __FILE__, __LINE__);
     // @rule: Only nl2br text that doesn't contain html tags
     if (!CStringHelper::isHTML($row->message)) {
         $row->message = CStringHelper::nl2br($row->message);
     }
 }
開發者ID:joshjim27,項目名稱:jobsglobal,代碼行數:8,代碼來源:groups.trigger.php

示例2: onMessageDisplay

 public function onMessageDisplay($row)
 {
     CFactory::load('helpers', 'string');
     CError::assert($row->body, '', '!empty', __FILE__, __LINE__);
     // @rule: Only nl2br text that doesn't contain html tags
     if (!CStringHelper::isHTML($row->body)) {
         $row->body = CStringHelper::nl2br($row->body);
     }
 }
開發者ID:bizanto,項目名稱:Hooked,代碼行數:9,代碼來源:inbox.trigger.php

示例3: onWallDisplay

 public function onWallDisplay($row)
 {
     //CFactory::load( 'helpers' , 'string' );
     CError::assert($row->comment, '', '!empty', __FILE__, __LINE__);
     // @rule: Only nl2br text that doesn't contain html tags
     if (!CStringHelper::isHTML($row->comment)) {
         $row->comment = CStringHelper::nl2br($row->comment);
     }
 }
開發者ID:Jougito,項目名稱:DynWeb,代碼行數:9,代碼來源:wall.trigger.php

示例4: onWallDisplay

 public function onWallDisplay($row)
 {
     //CFactory::load( 'helpers' , 'string' );
     CError::assert($row->comment, '', '!empty', __FILE__, __LINE__);
     // @rule: Only nl2br text that doesn't contain html tags
     //@since 4.1 new rule added, to ignore newline replace
     if (!CStringHelper::isHTML($row->comment) && !isset($row->newlineReplace)) {
         $row->comment = CStringHelper::nl2br($row->comment);
     }
 }
開發者ID:joshjim27,項目名稱:jobsglobal,代碼行數:10,代碼來源:wall.trigger.php

示例5:

echo JText::_('COM_COMMUNITY_GROUPS_BODY_TIPS');
?>
">
					<?php 
if ($config->get('htmleditor') == 'none' && $config->getBool('allowhtml')) {
    ?>
						<div class="htmlTag"><?php 
    echo JText::_('COM_COMMUNITY_HTML_TAGS_ALLOWED');
    ?>
</div>
					<?php 
}
?>

					<?php 
if (!CStringHelper::isHTML($group->description) && $config->get('htmleditor') != 'none' && $config->getBool('allowhtml')) {
    //$event = new stdClass();
    $group->description = CStringHelper::nl2br($group->description);
}
?>

					<?php 
echo $editor->displayEditor('description', $group->description, '90%', '300', '10', '20', false);
?>
					</span>
				</div>

				<script type="text/javascript">
					joms.jQuery(window).load(function() {

						if(joms.jQuery(this).width() <= 980) {
開發者ID:SMARTRESPONSOR,項目名稱:SMARTRESPONSOR,代碼行數:31,代碼來源:groups.forms.php

示例6: defined

 * @subpackage 	Template 
 * @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
 * @license		GNU/GPL, see LICENSE.php
 * 
 * @params	isMine		boolean is this group belong to me
 * @params	members		An array of member objects 
 */
defined('_JEXEC') or die;
?>

<form name="jsform-groups-discussionform" action="<?php 
echo CRoute::getURI();
?>
" method="post">
<?php 
if (!CStringHelper::isHTML($discussion->message) && $config->get('htmleditor') != 'none' && $config->getBool('allowhtml')) {
    $discussion->message = CStringHelper::nl2br($discussion->message);
}
?>
<script type="text/javascript">
function saveContent()
{
	<?php 
echo $editor->saveText('message');
?>
	return true;
}
</script>	
<table class="formtable">
	<?php 
echo $beforeFormDisplay;
開發者ID:Simarpreet05,項目名稱:joomla,代碼行數:31,代碼來源:groups.adddiscussion.php

示例7:

    $status->render();
    echo $streamHTML;
    ?>
        </div>
            <?php 
}
?>

        <div id="joms-event--details" class="joms-tab__content" style="<?php 
echo $config->get('default_event_tab') == 0 ? 'display:none;' : '';
?>
">

            <ul class="joms-list__row">
                <?php 
if (!CStringHelper::isHTML($event->description)) {
    ?>
                <li><?php 
    echo CStringHelper::nl2br($event->description);
    ?>
</li>
                <?php 
} else {
    ?>
                <li><?php 
    echo $event->description;
    ?>
</li>
                <?php 
}
?>
開發者ID:Jougito,項目名稱:DynWeb,代碼行數:31,代碼來源:single.php


注:本文中的CStringHelper::isHTML方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。