MCPcopy Create free account
hub / github.com/TruthHun/BookStack / decodeAttr

Function decodeAttr

static/vuejs/vue.js:7377–7380  ·  view source on GitHub ↗
(value, shouldDecodeNewlines)

Source from the content-addressed store, hash-verified

7375var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10);/g;
7376
7377function decodeAttr (value, shouldDecodeNewlines) {
7378 var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
7379 return value.replace(re, function (match) { return decodingMap[match]; })
7380}
7381
7382function parseHTML (html, options) {
7383 var stack = [];

Callers 1

handleStartTagFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected