websnacks/src
M. George Hansen 673f4c87db feat: add dangerouslySetInnerHTML attr
This adds are new attribute to Elements, "dangerouslySetInnerHTML", which like the same attribute from React allows one to take a stirng of unescaped HTML and render it unconditionally. This is of course a potentially dangerous operation that can open your app up to XSS attacks, but for interoperating with existing content management systems and libraries that output HTML (e.g. markdown renderers).

Using "dangerouslySetInnerHTML" on an element with children will generate an error within createElement, since it doesn't make sense to have both children and inner HTML.
2021-01-02 21:24:17 -08:00
..
cli chore: update * pin prettier version & format code 2021-01-02 13:40:18 -08:00
utils chore: update * pin prettier version & format code 2021-01-02 13:40:18 -08:00
build.ts chore: update * pin prettier version & format code 2021-01-02 13:40:18 -08:00
component.ts chore: update * pin prettier version & format code 2021-01-02 13:40:18 -08:00
config.ts fix: stack size exceed error on purging module cache 2020-06-14 12:06:59 -07:00
create-element.ts feat: add dangerouslySetInnerHTML attr 2021-01-02 21:24:17 -08:00
index.ts feat: provide Fragment component 2020-06-04 11:25:34 -07:00
jsx.ts feat: add dangerouslySetInnerHTML attr 2021-01-02 21:24:17 -08:00
render.ts feat: add dangerouslySetInnerHTML attr 2021-01-02 21:24:17 -08:00