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

Function decodeAttr

static/vuejs/vue.common.js:7383–7386  ·  view source on GitHub ↗
(value, shouldDecodeNewlines)

Source from the content-addressed store, hash-verified

7381var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10);/g;
7382
7383function decodeAttr (value, shouldDecodeNewlines) {
7384 var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
7385 return value.replace(re, function (match) { return decodingMap[match]; })
7386}
7387
7388function parseHTML (html, options) {
7389 var stack = [];

Callers 1

handleStartTagFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected