egil / Htmxor

Supercharges Blazor static server side rendering (SSR) by seamlessly integrating the Htmx.org frontend library.
MIT License
109 stars 12 forks source link

Ensure proper handling of hx attributes #17

Closed egil closed 3 months ago

egil commented 3 months ago

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

egil commented 3 months ago

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.