MCPcopy Index your code
hub / github.com/ygs-code/vue / shouldIgnoreFirstNewline

Function shouldIgnoreFirstNewline

vue.js:12554–12556  ·  view source on GitHub ↗
(tag, html)

Source from the content-addressed store, hash-verified

12552 var isIgnoreNewlineTag = makeMap('pre,textarea', true);
12553 //匹配tag标签是pre,textarea,并且第二个参数的第一个字符是回车键
12554 var shouldIgnoreFirstNewline = function (tag, html) {
12555 return tag && isIgnoreNewlineTag(tag) && html[0] === '\n';
12556 };
12557
12558 //替换html 中的特殊符号,转义成js解析的字符串,替换 把 &lt;替换 < , &gt; 替换 > , &quot;替换 ", &amp;替换 & , &#10;替换\n ,&#9;替换\t
12559 function decodeAttr(

Callers 1

parseHTMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected