Skip to content

Commit

Permalink
Escape euro sign correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver authored Jan 16, 2020
1 parent c54532b commit e6eda60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Helper/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function parseText($text, $checkTable = true, $removeLatex = false, $pars
$text = str_replace('³', '\\textsuperscript{3}', $text);
$text = str_replace('²', '\\textsuperscript{2}', $text);
$text = str_replace('³', '\\textsuperscript{3}', $text);
$text = str_replace('', '\\euro{}', $text);

// Remove remaining HTML entities
$text = preg_replace('/&[a-zA-Z]+;/iu', '', $text);
Expand Down

0 comments on commit e6eda60

Please sign in to comment.