Skip to content

Commit

Permalink
Escape special symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed May 20, 2010
1 parent bd298bd commit cd18422
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions showmetheshell
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd18422

Please sign in to comment.