You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
egil
changed the title
Enable easy serialization of object into hx-header and hx-vals attributes, such that the JSON is correctly embedded in the markup.
Easy serialization of object into hx-header and hx-vals attributes
Apr 22, 2024
egil
changed the title
Easy serialization of object into hx-header and hx-vals attributes
Ensure proper handling of hx attributes
Apr 22, 2024
Looks like all basic cases work. Users just need to choose either single or double quotes around the attribute value, and then use the opposite inside the value for the json properties and values.
If the value in hx attributes contains certain characters used in javascript, these are escaped by default by the renderer. That breaks functionality.
Attributes that contains JSON or JavaScript
The text was updated successfully, but these errors were encountered: