A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/5526 below:

Vue removes html tags in script tags wrapped by v-pre · Issue #5526 · vuejs/vue · GitHub

Version

2.2.6

Reproduction link

https://jsbin.com/holacowepe/1/edit?html,js,console

Steps to reproduce What is expected?

Script content isn't touched at all.

What is actually happening?

All html tags are removed.

I am migrating a website to Vue and do have some plain js code that reads out templates in a script tag on click. When the html is within a Vue template it removes all html tags in the script tag. I can't rewrite the whole site so I wanted to leave this part as it is. The same happens if I use v-pre which to my understanding should prevent Vue from doing anything to this part of the DOM.

I guess there are good reasons for the behavior but I haven't quite figured them out yet...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4