cvs: php-gtk-web /include layout.php

From: Date: Thu, 09 Aug 2001 16:24:15 +0000
Subject: cvs: php-gtk-web /include layout.php
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2669@lists.php.net to get a copy of this message
cmv Thu Aug 9 12:24:15 2001 EDT Modified files: /php-gtk-web/include layout.php Log: need this ... Index: php-gtk-web/include/layout.php diff -u php-gtk-web/include/layout.php:1.9 php-gtk-web/include/layout.php:1.10 --- php-gtk-web/include/layout.php:1.9 Thu Aug 2 13:00:52 2001 +++ php-gtk-web/include/layout.php Thu Aug 9 12:24:15 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.php,v 1.9 2001/08/02 17:00:52 andrei Exp $ */ +/* $Id: layout.php,v 1.10 2001/08/09 16:24:15 cmv Exp $ */ # spacer() @@ -296,5 +296,19 @@ </body> </html> <?php + + +function clean_note($text) { + $text = htmlspecialchars($text); + $fixes = array('<br>','<p>','</p>'); + reset($fixes); + while (list(,$f)=each($fixes)) { + $text=str_replace(htmlspecialchars($f), $f, $text); + $text=str_replace(htmlspecialchars(strtoupper($f)), $f, $text); + } + $text = "<tt>".nl2br($text)."</tt>"; + return $text; +} + }

« previous php.gtk (#2669) next »