https://www.icyphoenix.com/viewtopic.php?f=35&t=4872&p=50048#p50048
-----------------------------------
Mighty Gorgon
Tue 31 Aug, 2010 23:15

Re: [Solved]News Stopping / [break]: Stop News Where You Want
-----------------------------------
Move the code after highlight, so you will have something like this:

[codeblock]	// Highlight active words (primarily for search)
	if ($highlight_match)
	{
		// This has been back-ported from 3.0 CVS
		$message = preg_replace('#(?!<.*)(?<!\w)(' . $highlight_match . ')(?!\w|[^<>]*>)#i', '<span class="highlight-w"><b>\1</b></span>', $message);
	}

	// BEGIN CMX News Mod
	// Strip out the <!--break--> delimiter.
	$delim = htmlspecialchars('<!--break-->');
	$pos = strpos($message, $delim);
	if(($pos !== false) && ($pos < strlen($message)))
	{
		$message = substr_replace($message, html_entity_decode($delim), $pos, strlen($delim));
	}
	// END CMX News Mod[/codeblock]


