svn path=/trunk/; revision=13
done
}
-urlsave(){
+urlsafe(){
printf %s "$*" \
| sed 's;%;%25;g;
- s; ;%20;g;
- s;!;%21;g;
- s;";%22;g;
- s;&;%26;g;
- s;(;%28;g;
- s;);%29;g;
- s;:;%3a;g
+ s;\?;%3f;g;
+ s;#;%23;g;
s;<;%3c;g;
s;>;%3e;g;
- s;'\'';%27;g;
- s;\?;%3f;g;'
+ s;&;%26;g;
+ s;";%22;g;
+ s;'\'';%27;g;'
+# s; ;%20;g;
+# s;!;%21;g;
+# s;(;%28;g;
+# s;);%29;g;
+# s;:;%3a;g;
+}
+
+htmlsafe(){
+ printf %s "$*" \
+ | sed 's;<;\<\;;g;
+ s;>;\>\;;g;
+ s;&;\&\;;g;
+ s;";\"\;;g;
+ s;'\'';&apos\;;g;'
}
redirect(){