Skip to content

Commit

Permalink
Merge pull request #181 from ucfcdl/hotfix/fix-variable-reference
Browse files Browse the repository at this point in the history
Issue Resolved!

QA successfully completed.
  • Loading branch information
Fenel Joseph authored Jul 8, 2016
2 parents 5e3e4c1 + d905340 commit c380676
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Ufixit.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ public function renameElement($node, $name)
*/
public function replaceContent($html, $error, $corrected)
{
$html = $this->replaceContent($html, $error_html, $corrected_error);
$error = HTMLMinify::minify(str_replace($this->annoying_entities, $this->entity_replacements, $error), ['doctype' => 'html5']);
$corrected = HTMLMinify::minify(str_replace($this->annoying_entities, $this->entity_replacements, $corrected), ['doctype' => 'html5']);
$html = HTMLMinify::minify(str_replace($this->annoying_entities, $this->entity_replacements, htmlentities($html)), ['doctype' => 'html5']);
$html = str_replace($error, $corrected, html_entity_decode($html));

return $html;
}
Expand Down

0 comments on commit c380676

Please sign in to comment.