From cd18422489da2daa66338dea5ba7f48a502a0b5b Mon Sep 17 00:00:00 2001 From: vti Date: Thu, 20 May 2010 17:54:02 +0200 Subject: [PATCH] Escape special symbols --- showmetheshell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/showmetheshell b/showmetheshell index a6e48c7..72f5250 100644 --- a/showmetheshell +++ b/showmetheshell @@ -486,6 +486,9 @@ sub _vt_new { $text =~ s/$d0$d0/$d0/g; $text = Mojo::ByteStream->new($text)->decode('UTF-8'); + $text =~ s/'/"/g; + $text = Mojo::ByteStream->new($text)->xml_escape; + my $esc = pack('C', 0x1B); $text =~ s/\s+$//g;