Skip to content

Commit

Permalink
Synced to 6266e40
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Jul 3, 2017
1 parent a659a01 commit 9380fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "s9e/text-formatter",
"version": "0.10.0",
"version": "0.10.1",
"type": "library",
"description": "Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding media (YouTube, etc...), enhanced typography and more.",
"homepage": "https://github.com/s9e/TextFormatter/",
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Censor/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function censorHtml($html, $censorAttributes = \false)
$regexp,
function ($m) use ($_this)
{
return \htmlspecialchars($_this->getReplacement($m[0]), \ENT_QUOTES);
return \htmlspecialchars($_this->getReplacement(\html_entity_decode($m[0], \ENT_QUOTES, 'UTF-8')), \ENT_QUOTES);
},
$html
);
Expand Down

0 comments on commit 9380fd3

Please sign in to comment.