本文整理汇总了PHP中JFilterOutput::cleantext方法的典型用法代码示例。如果您正苦于以下问题:PHP JFilterOutput::cleantext方法的具体用法?PHP JFilterOutput::cleantext怎么用?PHP JFilterOutput::cleantext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JFilterOutput
的用法示例。
在下文中一共展示了JFilterOutput::cleantext方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formatNote
/**
* formatNote()
* formatiert öffentliche Notiz
*/
function formatNote($text)
{
$string = nl2br(JFilterOutput::cleantext($text));
return $string;
}
示例2: nl2br
echo '<br />';
}
}
echo '<br />';
}
if ($params->get('menulist', 0)) {
echo '</ul>';
}
// ContentID gesetzt, Artikel gefunden
if ($param['contentid'] > 0 and isset($contentTitle)) {
$contenttext = $params->get('contenttext', '');
if ($contenttext != '') {
$textToUse = $contenttext;
} else {
$textToUse = $contentTitle;
}
echo '<a href="index.php?option=com_content&view=article&id=' . $param['contentid'] . '">' . $textToUse . '</a>';
echo '<br />';
}
// Text unterhalb
if ($param['textbottom'] != '') {
echo nl2br(JFilterOutput::cleantext($param['textbottom']));
}
// Menu Ende
echo '</div>';
?>
示例3: nl2br
echo '<li><span>' . nl2br(JFilterOutput::cleantext($value->bemerkungen)) . '</span></li>';
}
echo '</ul>';
} else {
// nicht veröffentlicht
echo '<ul><li><span>' . JText::_('UNPUBLISHED') . '</span></li></ul>';
}
}
echo '</li>';
// schließt dieses Turnier ab
}
// alle Turniere abgeschlossen
// ContentID gesetzt, Artikel gefunden
if ($param['contentid'] > 0 and isset($contentTitle)) {
$contenttext = $params->get('contenttext', '');
if ($contenttext != '') {
$textToUse = $contenttext;
} else {
$textToUse = $contentTitle;
}
echo '<li><span><a href="index.php?option=com_content&view=article&id=' . $param['contentid'] . '">' . $textToUse . '</a></span></li>';
}
// Text unterhalb
if ($param['textbottom'] != '') {
echo '<li><span>' . nl2br(JFilterOutput::cleantext($param['textbottom'])) . '</span></li>';
}
?>
</ul>
示例4: nl2br
echo '<br />';
}
}
echo '<br />';
}
if ($params->get('menulist', 0)) {
echo '</ul>';
}
// ContentID gesetzt, Artikel gefunden
if ($this->params['contentid'] > 0 and isset($contentTitle)) {
$contenttext = $params->get('contenttext', '');
if ($contenttext != '') {
$textToUse = $contenttext;
} else {
$textToUse = $contentTitle;
}
echo '<a href="index.php?option=com_content&view=article&id=' . $this->params['contentid'] . '">' . $textToUse . '</a>';
echo '<br />';
}
// Text unterhalb
if ($this->params['textbottom'] != '') {
echo nl2br(JFilterOutput::cleantext($this->params['textbottom']));
}
// Menu Ende
echo '</div>';
?>