Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

JSX.Element[] is considered as Xss prone element #27

Closed
arthurfiorette opened this issue Nov 17, 2023 · 0 comments
Closed

JSX.Element[] is considered as Xss prone element #27

arthurfiorette opened this issue Nov 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@arthurfiorette
Copy link
Member

Example:

const postList: JSX.Element[] = posts.map((post) => (
    <li>
      <PostCard
        author={post.author.name}
        post={post}
        authored={userId === post.authorId}
      />
    </li>
  ));

return <>{postList}</>;
//        ~~~~~~~~     
// Usage of xss-prone content without `safe` attribute. https://kitajs.github.io/ts-html-plugin#k601ts(0 K601)
@arthurfiorette arthurfiorette added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Nov 17, 2023
@arthurfiorette arthurfiorette self-assigned this Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant