cvs: php-gtk-web /include layout.php
[email protected] ("Colin Viebrock") Thu, 09 Aug 2001 16:24:15 -0000
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <cvscmv997374255@cvsserver> |
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;
+}
+
}