|
|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
|
- * Vue.js v2.3.0-beta.1
|
|
|
+ * Vue.js v2.3.0
|
|
|
* (c) 2014-2017 Evan You
|
|
|
* Released under the MIT License.
|
|
|
*/
|
|
|
@@ -4384,7 +4384,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
|
|
get: isServerRendering
|
|
|
});
|
|
|
|
|
|
-Vue$3.version = '2.3.0-beta.1';
|
|
|
+Vue$3.version = '2.3.0';
|
|
|
|
|
|
/* */
|
|
|
|
|
|
@@ -8170,7 +8170,7 @@ function parse (
|
|
|
}
|
|
|
var children = currentParent.children;
|
|
|
text = inPre || text.trim()
|
|
|
- ? decodeHTMLCached(text)
|
|
|
+ ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
|
|
|
// only preserve whitespace if its not right after a starting tag
|
|
|
: preserveWhitespace && children.length ? ' ' : '';
|
|
|
if (text) {
|
|
|
@@ -8462,6 +8462,11 @@ function makeAttrsMap (attrs) {
|
|
|
return map
|
|
|
}
|
|
|
|
|
|
+// for script (e.g. type="x/template") or style, do not decode content
|
|
|
+function isTextTag (el) {
|
|
|
+ return el.tag === 'script' || el.tag === 'style'
|
|
|
+}
|
|
|
+
|
|
|
function isForbiddenTag (el) {
|
|
|
return (
|
|
|
el.tag === 'style' ||
|