1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vue2.xでデータをエスケープせずに表示したい

Last updated at Posted at 2017-04-10

Vueでhtml等をそのまま表示したい

1.xまではマスタッシュ記法

<div>
  {{{ some }}}
</div>

上記方法は2.xから廃止になってました。
代わりにv-htmlというディレクティブが用意されています。

<div v-html="some"></div>

参考:
Vue 1.x からの移行 - HTML-の展開-削除

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?