From 574c275d60b38dfa4c9d977e99b5227a85a94eae Mon Sep 17 00:00:00 2001 From: pdbogen Date: Sat, 26 Jan 2008 00:53:55 +0000 Subject: [PATCH] RSS: Translate special characters regardless of the "strip" flag. git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@35 088b83a4-0077-4247-935c-42ec02c2848b --- commands.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands.yaml b/commands.yaml index ddc8ef9..0793e41 100644 --- a/commands.yaml +++ b/commands.yaml @@ -886,11 +886,12 @@ RSS: |- if( $strip == 1 ) { $tmp =~ s/
/\n/g; $tmp =~ s/<[^>]+>//g; - $tmp =~ s/<//gi; - $tmp =~ s/"/"/gi; - $tmp =~ s/&/&/gi; } + $tmp =~ s/<//gi; + $tmp =~ s/"/"/gi; + $tmp =~ s/&/&/gi; + $tmp =~ s/—/--/gi; if( $oneline == 1 ) { $tmp =~ s/\n/ /gi; } -- 2.11.0