Skip to content

Commit

Permalink
Replace square brackets when parsing text
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 authored and bobvandevijver committed Jun 13, 2021
1 parent 3fcf5b5 commit 5d21d3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Helper/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public function parseText($text, $checkTable = true, $removeLatex = false, $pars
$text = str_replace("\\", "\\textbackslash ", $text);
$text = str_replace("{", "\\{ ", $text);
$text = str_replace("}", "\\} ", $text);
$text = str_replace("[", "\\[ ", $text);
$text = str_replace("]", "\\] ", $text);
}

// Special characters
Expand Down

0 comments on commit 5d21d3e

Please sign in to comment.