質問編集履歴
2
補足2
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,3 +55,19 @@
|
|
55
55
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 250 150" width="250" height="150"><defs><path d="M68.18 31.31L192 31.31L192 108.31L68.18 108.31L68.18 31.31Z" id="chMAGfJHU"></path><path d="M192 69.81L68.18 69.81" id="h1FLQ4bfrc"></path><path d="M130.09 108.31L130.09 69.81" id="a16eyZmJB1"></path></defs><g><g><g><use xlink:href="#chMAGfJHU" opacity="1" fill="#f9f9f9" fill-opacity="1"></use><g><use xlink:href="#chMAGfJHU" opacity="1" fill-opacity="0" stroke="#000000" stroke-width="2" stroke-opacity="1"></use></g></g><g><g><use xlink:href="#h1FLQ4bfrc" opacity="1" fill-opacity="0" stroke="#0b1923" stroke-width="1" stroke-opacity="1"></use></g></g><g><g><use xlink:href="#a16eyZmJB1" opacity="1" fill-opacity="0" stroke="#0b1923" stroke-width="1" stroke-opacity="1"></use></g></g></g></g></svg>
|
56
56
|
|
57
57
|
```
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
バックエンド側(PHP Symfony)では
|
62
|
+
|
63
|
+
return $this->render(html.twig,['svg' => $svg]);
|
64
|
+
|
65
|
+
という形でhtmlをリターンしています。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
HTML(Twig)側では
|
70
|
+
|
71
|
+
{{ svg }}
|
72
|
+
|
73
|
+
という形で表示しています。
|
1
補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -43,3 +43,15 @@
|
|
43
43
|
|
44
44
|
|
45
45
|
どなたか対処法をご存じでしたら教えていただきたいです。よろしくお願いいたします。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
## 補足
|
50
|
+
|
51
|
+
取得しているsvgコードは以下です
|
52
|
+
|
53
|
+
```ここに言語を入力
|
54
|
+
|
55
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 250 150" width="250" height="150"><defs><path d="M68.18 31.31L192 31.31L192 108.31L68.18 108.31L68.18 31.31Z" id="chMAGfJHU"></path><path d="M192 69.81L68.18 69.81" id="h1FLQ4bfrc"></path><path d="M130.09 108.31L130.09 69.81" id="a16eyZmJB1"></path></defs><g><g><g><use xlink:href="#chMAGfJHU" opacity="1" fill="#f9f9f9" fill-opacity="1"></use><g><use xlink:href="#chMAGfJHU" opacity="1" fill-opacity="0" stroke="#000000" stroke-width="2" stroke-opacity="1"></use></g></g><g><g><use xlink:href="#h1FLQ4bfrc" opacity="1" fill-opacity="0" stroke="#0b1923" stroke-width="1" stroke-opacity="1"></use></g></g><g><g><use xlink:href="#a16eyZmJB1" opacity="1" fill-opacity="0" stroke="#0b1923" stroke-width="1" stroke-opacity="1"></use></g></g></g></g></svg>
|
56
|
+
|
57
|
+
```
|