summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-11-06 20:49:18 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-11-06 20:49:18 -0500
commit11d377af816b30eba336fae2993a79362443c293 (patch)
tree7bed8d9eb92949be0f4f0b8df6dcb725234c76a5 /IkiWiki/Plugin
parent96d52b82edffae197ae182f7073d4b7a8d88880b (diff)
txt: Do not encode quotes when filtering the txt, as that broke later parsing of any directives on the page.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/txt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/txt.pm b/IkiWiki/Plugin/txt.pm
index e4c9e5d6a..e157bf07e 100644
--- a/IkiWiki/Plugin/txt.pm
+++ b/IkiWiki/Plugin/txt.pm
@@ -39,7 +39,7 @@ sub filter (@) {
my $content = $params{content};
if (defined $pagesources{$params{page}} && $pagesources{$params{page}} =~ /\.txt$/) {
- encode_entities($content);
+ encode_entities($content, "<>&");
if ($findurl) {
my $finder = URI::Find->new(sub {
my ($uri, $orig_uri) = @_;