Hi,
Please consider the following Graph:
<graphviz preparse="dynamic"> strict digraph FooBar{ "Foo" {{#if:yes | -> }} "Bar"; } </graphviz>
since the arrow is passed through a parserfunction it will come back as -> encoded with htmlspecialchars.
GraphViz then fails as it cannot interpret the dot-language. with
Warning: WIKI_Playground_strict_digraph_FooBar.src: syntax error in line 2 near '-'
As a workaround I added
$input = str_replace('>', '>', $input);
in /Graphviz/includes/Graphviz.php on line 666, just after
if ( $doRecursiveTagParse ) { $input = $parser->recursiveTagParse( $input, $frame ); }
but maybe there is a better way to tackle this?
In my case I have a more complex parser function returning dotgraph language but the gist is the same.
Thanks, Istvan
MediaWiki | 1.32.0 |
PHP | 7.3.1 (cgi-fcgi) |
MariaDB | 5.5.60-MariaDB |
GraphViz | 3.0.0 (d7732c8) |