summaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-11-10 19:03:11 +0000
committerSimon Tatham <anakin@pobox.com>2009-11-10 19:03:11 +0000
commit158f066876fea5e0b64919db5ca1f74ea7ad82db (patch)
treecb8ff83980fc4a388b74017dad0479d4405dc8fb /inputs
parent6c481aff452a0eed147fc73144b461fe7c263d9e (diff)
downloadhalibut-158f066876fea5e0b64919db5ca1f74ea7ad82db.zip
halibut-158f066876fea5e0b64919db5ca1f74ea7ad82db.tar.gz
halibut-158f066876fea5e0b64919db5ca1f74ea7ad82db.tar.bz2
halibut-158f066876fea5e0b64919db5ca1f74ea7ad82db.tar.xz
Escape &<> when they appear in href text.
[originally from svn r8743]
Diffstat (limited to 'inputs')
-rw-r--r--inputs/test.but5
1 files changed, 5 insertions, 0 deletions
diff --git a/inputs/test.but b/inputs/test.but
index b1f669a..dddc2dd 100644
--- a/inputs/test.but
+++ b/inputs/test.but
@@ -278,6 +278,11 @@ Similarly, we should support things like hyperlinks
and \e{in the \W{http://www.tartarus.org/}{middle} of them}, and also
\e{at the \W{http://home.att.net/~cecw/lastpage.htm}{end}}.
+Here's a hyperlink containing some special characters:
+\W{http://a<b&c>d/}{here}. (Not that it'll \e{work}, but you can at
+least determine that it's been correctly escaped by inspection of
+the output HTML.)
+
\#{FIXME: Unfortunately, we still don't quite do the right thing with
references:
How about a \e{reference to \k{subhead} here}? And at