commit:e33a45a1037f0622d98dd5a8169d86239d18e552
author:Chip Black
committer:Chip Black
date:Wed May 20 02:55:01 2009 -0500
parents:59565f030d5f832b4eefd5aba295fb1903afc125
Add XML predefined entities to ent_decode
diff --git a/youtube-subrip b/youtube-subrip
line changes: +5/-0
index 2df0fc2..1af6542
--- a/youtube-subrip
+++ b/youtube-subrip
@@ -58,6 +58,11 @@ my $sub_count = 0;
 sub ent_decode {
 	local $_ = shift;
 	s/&#(\d+);/chr($1)/ge;
+	s/"/"/g;
+	s/&/&/g;
+	s/'/'/g;
+	s/&lt;/</g;
+	s/&gt;/>/g;
 	return $_;
 }