Peter
08/11/2023, 7:04 AMkotlinx-html
(the JVM version) in combination with htmx
, and liking it a lot so far. 👍
Of course typed HTML is a big advantage, but one aspect I think isn’t highlighted as much but equally as important IMHO is: much better security out of the box.
Because it isn’t a simple string-based template engine, it knows when to escape input (text nodes and attributes) and reduces common risk like user injected XSS.Cies
08/11/2023, 2:08 PMhtmx
example), explaining that it's generated from w3c's HTML spec.Cies
08/11/2023, 2:11 PMPeter
08/11/2023, 2:19 PMCies
08/11/2023, 4:49 PMCies
08/11/2023, 4:56 PMMikael StĂĄldal
08/11/2023, 5:19 PMhtmx
(e.g. a list of <option>
, <tr>
or <li>
). https://kotlinlang.slack.com/archives/CKWA2MV8U/p1688723457666059
Apart from that, it works fine.Peter
08/11/2023, 5:33 PMkotlinx-html
doesn’t have support for something like NodeList
out of the box (or at least I couldn’t find it).
Have to read some of the previous threads you provided, but I assume something can be added to support this. Worst case, you can add it as a transformResponse HTMX extension.