Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually, let's try this.
  • Loading branch information
icculus committed Apr 25, 2016
1 parent b89cd88 commit 950bdcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IcculusFinger_daemon.pl
Expand Up @@ -685,9 +685,9 @@ sub output_start {
my $summary = $metadata{'summary'};
my $titlestr = $title;
# !!! FIXME: we need a proper HTML encoder.
$uname =~ s/'/\\'/g;
$titlestr =~ s/'/\\'/g;
$summary =~ s/'/\\'/g;
$uname =~ s/'/&\#39/g;
$titlestr =~ s/'/&\#39/g;
$summary =~ s/'/&\#39/g;
$twitter .= "<meta name='twitter:card' content='summary' />\n";
$twitter .= "<meta name='twitter:site' content='\@$uname' />\n";
$twitter .= "<meta name='twitter:title' content='$titlestr' />\n";
Expand Down

0 comments on commit 950bdcd

Please sign in to comment.