Skip to content

Commit

Permalink
TODO: encode and decode needs a method to prevent multiple encode of …
Browse files Browse the repository at this point in the history
…an already encoded value
  • Loading branch information
frankpagan committed Aug 22, 2024
1 parent 4550990 commit e6a04f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/getValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ const getValue = (element) => {
console.error('getValue() error:', error, element);
}

// TODO: encode and decode needs a method to prevent multiple encode of an already encoded value
let encode = element.getAttribute('value-encode')
if (encode)
value = encodeValue(value, encode)
Expand Down

0 comments on commit e6a04f5

Please sign in to comment.