Skip to content
Permalink
Browse files

Merge branch 'wip-mdl-22896' of git://github.com/rajeshtaneja/moodle

  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Feb 28, 2012
2 parents 0f0eca4 + 59c8116 commit 2ac18d92617e6a156799ab08ef2fd5a9b6731a35
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/html2text.php
@@ -470,7 +470,7 @@ function _convert()
$text = html_entity_decode($text, ENT_COMPAT, 'UTF-8');
// Remove unknown/unhandled entities (this cannot be done in search-and-replace block)
$text = preg_replace('/&[^&;]+;/i', '', $text);
$text = preg_replace('/&([a-zA-Z0-9]{2,6}|#[0-9]{2,4});/', '', $text);
// Strip any other HTML tags
$text = strip_tags($text, $this->allowed_tags);

0 comments on commit 2ac18d9

Please sign in to comment.
You can’t perform that action at this time.