MCPcopy Create free account
hub / github.com/ygs-code/vue / isTextTag

Function isTextTag

vue.js:14012–14014  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

14010 // for script (e.g. type="x/template") or style, do not decode content
14011 //判断标签是否是script或者是style
14012 function isTextTag(el) {
14013 return el.tag === 'script' || el.tag === 'style'
14014 }
14015
14016 //如果是style或者是是script 标签并且type属性不存在 或者存在并且是javascript 属性 的时候返回真
14017 function isForbiddenTag(el) {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected