Actually, let's try this.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 25 Apr 2016 09:31:50 -0400
changeset 89 59f649aeecef
parent 88 479571afa3c7
child 90 55eb733ab82c
Actually, let's try this.
IcculusFinger_daemon.pl
--- a/IcculusFinger_daemon.pl	Mon Apr 25 09:26:05 2016 -0400
+++ b/IcculusFinger_daemon.pl	Mon Apr 25 09:31:50 2016 -0400
@@ -685,9 +685,9 @@
         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";