summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-06 22:39:32 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-06 22:39:32 +0100
commite4ca81d4b0c9092917c0f3e2ec8c23705bf95eed (patch)
tree902771c4eaf3ff39e28928517cc7a888c1bc55e0
parent9d1b97ae5e41ae665b7eac899cd0ae4bf8439205 (diff)
downloadndim-git-utils-e4ca81d4b0c9092917c0f3e2ec8c23705bf95eed.tar.gz
ndim-git-utils-e4ca81d4b0c9092917c0f3e2ec8c23705bf95eed.tar.xz
ndim-git-utils-e4ca81d4b0c9092917c0f3e2ec8c23705bf95eed.zip
e-mail addr obfuscation with html char entities
-rw-r--r--build-helpers/txt2html.sed3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-helpers/txt2html.sed b/build-helpers/txt2html.sed
index a2849b7..e8017dd 100644
--- a/build-helpers/txt2html.sed
+++ b/build-helpers/txt2html.sed
@@ -1,3 +1,4 @@
+# Convert certain text files to HTML fragment
s/&/\&amp/g;
s/</\&lt;/g;
s/>/\&gt;/g;
@@ -5,6 +6,6 @@ s/>/\&gt;/g;
/;
$s/$/\
<\/pre>/;
-s|\([a-z]\{1,\}\)@\([a-z0-9.-]\{1,\}\)|\1(at)\2|;
+s|\([a-z]\{1,\}\)@\([a-z0-9.-]\{1,\}\)|\1\&#x40;\2|;
s|\([a-zA-Z0-9_-]\{1,\}\)\(([1-9])\)|<a href="\1.txt">\1\2</a>|;
s|\(http://[a-zA-Z0-9./_-]\{1,\}\)|<a href="\1">\1</a>|g;