Closed arthurfiorette closed 11 months ago
my current work around is {check ? <div /> : ""}
:(
{check && (<div />)}
also works
Fixed!
I'm still getting the same error with <div>{true && <div></div>}</div>
using the latest version, but { true && <div />; }
works fine.
❯ node -v && pnpm -v
v20.5.1
8.5.1
"@kitajs/ts-html-plugin": "^1.3.1", "@kitajs/html": "^3.0.8",
Conditions like text !== '/' ? && <div />
also does not work
I think its fixed now.
{check && <div />}
throws XSS error and should not