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

Function shouldDecode

static/vuejs/vue.esm.js:7280–7284  ·  view source on GitHub ↗
(content, encoded)

Source from the content-addressed store, hash-verified

7278
7279// check whether current browser encodes a char inside attribute values
7280function shouldDecode (content, encoded) {
7281 var div = document.createElement('div');
7282 div.innerHTML = "<div a=\"" + content + "\">";
7283 return div.innerHTML.indexOf(encoded) > 0
7284}
7285
7286// #3663
7287// IE encodes newlines inside attribute values while other browsers don't

Callers 1

vue.esm.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected