while ( $row = $db->get_array() ) {
$i ++;
if( $langformatdate ) {
$itemdate = date( $langformatdate, strtotime( $row['date'] ) );
} else {
$itemdate = date( "d.m.Y", strtotime( $row['date'] ) );
}
$title = $row['title'];
$xfieldsdata = xfieldsdataload( $row['xfields'] );
$title = htmlspecialchars( stripslashes( $title ), ENT_QUOTES, $config['charset'] );
$title = str_replace("&","&", $title );