diff --git a/tools/sparklog.ipynb b/tools/sparklog.ipynb index 753710aca..4e5d9059e 100644 --- a/tools/sparklog.ipynb +++ b/tools/sparklog.ipynb @@ -692,9 +692,9 @@ " for c in keys:\n", " v=columns[c]\n", " if v.startswith(\"array\") or v.startswith(\"map\") or v.startswith(\"struct\"):\n", - " s[1]=re.sub(c, ''+html.escape(v)+\"\",s[1])\n", + " s[1]=re.sub(re.escape(c), ''+html.escape(v)+\"\",s[1])\n", " else:\n", - " s[1]=re.sub(c, \"\"+html.escape(v)+\"\",s[1])\n", + " s[1]=re.sub(re.escape(c), \"\"+html.escape(v)+\"\",s[1])\n", "\n", "\n", " htmls=['''