fix double encoded HTML entities re sf#1372630
This commit is contained in:
parent
c928697449
commit
4b64a1409c
2 changed files with 4 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ sub _strip_html {
|
|||
$_[0] =~ s/\</</g;
|
||||
$_[0] =~ s/\>/>/g;
|
||||
$_[0] = WebGUI::HTML::filter($_[0], 'all');
|
||||
##Unencode double encoded entities. This is usually done
|
||||
##by passing XML::RSSLite an already encoded entity.
|
||||
$_[0] =~ s/\&(?=(#[0-9]+|#x[0-9a-fA-F]+|\w+);)/&/g;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue