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

Function shouldDecode

static/vuejs/vue.common.js:7282–7286  ·  view source on GitHub ↗
(content, encoded)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.common.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected