Encodes & to &
This commit is contained in:
parent
89cf770472
commit
bb37fc62bd
@ -65,6 +65,8 @@ class TextFormatterLatexMathML extends Textformatter {
|
||||
// unescape esaped $-signs
|
||||
$modifiedValue = str_replace('\$', '$',$modifiedValue);
|
||||
|
||||
$modifiedValue = str_replace('&','&',$modifiedValue);
|
||||
|
||||
// Save the node and its modified content for later replacement
|
||||
$nodesForReplacement[] = array(
|
||||
'node' => $node,
|
||||
@ -90,6 +92,7 @@ class TextFormatterLatexMathML extends Textformatter {
|
||||
// Define a callback function to convert the matched formula to MathML
|
||||
function convertToMathML($matches) {
|
||||
$cache = wire('cache');
|
||||
# $cache->deleteAll();
|
||||
|
||||
// $matches[1] contains the matched substring within '$'
|
||||
$formula = $matches[1];
|
||||
|
Loading…
Reference in New Issue
Block a user