Home / Function/ decodeAttr() — vue Function Reference

decodeAttr() — vue Function Reference

Architecture documentation for the decodeAttr() function in html-parser.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e8b21459_4ca2_98f3_d54f_e253f139d952["decodeAttr()"]
  ca00eea8_e506_fbea_a89a_cf39796a3659["parseHTML()"]
  ca00eea8_e506_fbea_a89a_cf39796a3659 -->|calls| e8b21459_4ca2_98f3_d54f_e253f139d952
  style e8b21459_4ca2_98f3_d54f_e253f139d952 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/parser/html-parser.ts lines 53–56

function decodeAttr(value, shouldDecodeNewlines) {
  const re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr
  return value.replace(re, match => decodingMap[match])
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does decodeAttr() do?
decodeAttr() is a function in the vue codebase.
What calls decodeAttr()?
decodeAttr() is called by 1 function(s): parseHTML.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free