我需要获得类似的内容
<script type="text/vnd.graphviz" id="genealogy">
digraph genealogy {
ratio="auto";
rankdir="BT";
edge [style=solid arrowhead=none arrowtail=normal ];
node [color=lightblue style=filled shape=box ];
"118" [label="Max Mustermann"];
"812" -> "118" [];
"812" [label="Luise Mustermann"];
};
</script>
但不幸的是
<h:outputScript id="genealogy">
digraph genealogy {
ratio="auto";
rankdir="BT";
edge [style=solid arrowhead=none arrowtail=normal ];
node [color=lightblue style=filled shape=box ];
"118" [label="Max Mustermann"];
"812" -> "118" [];
"812" [label="Luise Mustermann"];
};
</h:outputScript>
只是给我
<script type="text/javascript">
digraph genealogy {
ratio="auto";
rankdir="BT";
edge [style=solid arrowhead=none arrowtail=normal ];
node [color=lightblue style=filled shape=box ];
"118" [label="Max Mustermann"];
"812" -> "118" [];
"812" [label="Luise Mustermann"];
};
</script>
所以我的问题是:如何将 id="genealogy"(和 type="text/vnd.graphviz")放入 -Tag?