summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ceb7c5d)
Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11
public function highlightText( $text, $terms, $contextlines, $contextchars ) {
global $wgContLang, $wgSearchHighlightBoundaries;
public function highlightText( $text, $terms, $contextlines, $contextchars ) {
global $wgContLang, $wgSearchHighlightBoundaries;
if ( $text == '' ) {
return '';
}
if ( $text == '' ) {
return '';
}
* @return mixed
*/
function removeWiki( $text ) {
* @return mixed
*/
function removeWiki( $text ) {
// $text = preg_replace( "/'{2,5}/", "", $text );
// $text = preg_replace( "/\[[a-z]+:\/\/[^ ]+ ([^]]+)\]/", "\\2", $text );
// $text = preg_replace( "/\[\[([^]|]+)\]\]/", "\\1", $text );
// $text = preg_replace( "/'{2,5}/", "", $text );
// $text = preg_replace( "/\[[a-z]+:\/\/[^ ]+ ([^]]+)\]/", "\\2", $text );
// $text = preg_replace( "/\[\[([^]|]+)\]\]/", "\\1", $text );
*/
public function highlightSimple( $text, $terms, $contextlines, $contextchars ) {
global $wgContLang;
*/
public function highlightSimple( $text, $terms, $contextlines, $contextchars ) {
global $wgContLang;
$lines = explode( "\n", $text );
$lines = explode( "\n", $text );