When setting attributes, most of the time you are setting them with a double quote, like so:
<div id="something" data-foo="your data"></div>
However, I would like to use a single quote, the β charecter like so:
<div id="something" data-foo='{"singlequoteddata":"here"}'></div>
Right now, if a single quote is used in a template partial, it is ignored and replaced with a double quote.
The reason for wanting this is to put json data inside the data attribute, as seen on this question in the past.
https://stackoverflow.com/questions/8542746/store-json-object-in-data-attribute-in-html-jquery . In the example, itβs needed to quote strings, which requires the double quote charecter inside the string itself.