summaryrefslogtreecommitdiffstats
path: root/handlers
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-01-07 02:30:00 +0100
committerneoraider <devnull@localhost>2006-01-07 02:30:00 +0100
commit61f7b4cc39a399a16298453acbe5a8f49ad0513d (patch)
tree0689466391e396e8e62c883994148f09f60c467b /handlers
parenta89ac4fda6c7cab6cace4078491c29f215213ab2 (diff)
downloadneon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.tar
neon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.zip
Hmm... die Content-Handler sind jetzt ansatzweise implementiert.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/default7
1 files changed, 7 insertions, 0 deletions
diff --git a/handlers/default b/handlers/default
new file mode 100644
index 0000000..b9ea3e9
--- /dev/null
+++ b/handlers/default
@@ -0,0 +1,7 @@
+<?PHP
+ function default_handler($data) {
+ return strtr($data['content'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;', "\n" => '<br />', "\r" => ''));
+ }
+
+ $handlers['default'] = 'default_handler';
+?>