From 80bf22f1b2038220b30ff4a0474d9ee7f294a5a4 Mon Sep 17 00:00:00 2001 From: Julyan <3721077+Julyanvdham@users.noreply.github.com> Date: Sun, 1 Apr 2018 23:55:31 +0200 Subject: [PATCH] Update Node.php This edit makes sure that backslashes are not removed when the chart is made. --- src/phpDocumentor/GraphViz/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phpDocumentor/GraphViz/Node.php b/src/phpDocumentor/GraphViz/Node.php index 68657bb..5a57716 100644 --- a/src/phpDocumentor/GraphViz/Node.php +++ b/src/phpDocumentor/GraphViz/Node.php @@ -118,7 +118,7 @@ public function __toString(): string { $attributes = []; foreach ($this->attributes as $value) { - $attributes[] = (string) $value; + $attributes[] = str_replace("\\", "\\\\", (string) $value); } $attributes = implode("\n", $attributes);