mirror of
https://github.com/php/web-php.git
synced 2026-03-28 17:22:06 +01:00
replace double-newline with paragraph break (but not just nl2br, which would be too funky), and repeat url at end of entry like it did before.
This commit is contained in:
@@ -427,7 +427,7 @@ function display_event($event,$include_date=1)
|
||||
}
|
||||
?>
|
||||
</td></tr>
|
||||
<tr bgcolor="#eeeeee"><td><?php echo $event['ldesc']?></td></tr>
|
||||
<tr bgcolor="#eeeeee"><td><?php echo preg_replace("/\r?\n\r?\n/","<br /><br />",trim($event['ldesc'])); if ($event['url']) {?><br /><br /><b>URL:</b> <?php echo '<a href="',htmlentities($event['url']),'">',htmlentities($event['url']),'</a>'; }?></td></tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user