1 I have been trying to include some meta info using the link setting something like the below
3 meta link="http://www.example.com/" rel="command" name="Example"
5 This gets removed by the htmlscrubber as you would expect.
7 Setting htmlscrubber_skip to the pagespec should stop this getting scrubbed but it does not.
9 Below is a patch to fix that. It seams to work but I am not sure of it is the correct thing to do.
11 --- meta.pm 2008-12-11 17:50:33.000000000 +0000
12 +++ meta.pm.orig 2008-12-10 17:41:23.000000000 +0000
19 if (IkiWiki::Plugin::htmlscrubber->can("sanitize")) {
20 - return IkiWiki::Plugin::htmlscrubber::sanitize(content => shift, destpage => shift);
21 + #return IkiWiki::Plugin::htmlscrubber::sanitize(content => shift);
27 elsif ($key eq 'permalink') {
28 if (safeurl($value)) {
29 $pagestate{$page}{meta}{permalink}=$value;
30 - push @{$metaheaders{$page}}, scrub('<link rel="bookmark" href="'.encode_entities($value).'" />', $page);
31 + push @{$metaheaders{$page}}, scrub('<link rel="bookmark" href="'.encode_entities($value).'" />');
34 elsif ($key eq 'stylesheet') {
36 my $delay=int(exists $params{delay} ? $params{delay} : 0);
37 my $redir="<meta http-equiv=\"refresh\" content=\"$delay; URL=$value\" />";
39 - $redir=scrub($redir, $page);
40 + $redir=scrub($redir);
42 push @{$metaheaders{$page}}, $redir;
46 encode_entities($_)."=\"".encode_entities(decode_entities($params{$_}))."\""
52 elsif ($key eq 'robots') {
56 push @{$metaheaders{$page}}, scrub('<meta name="'.encode_entities($key).
57 - '" content="'.encode_entities($value).'" />', $page);
58 + '" content="'.encode_entities($value).'" />');