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

Function shouldDecode

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

Source from the content-addressed store, hash-verified

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

Callers 1

vue.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected