demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/src/components/Comment.tsx

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/src/components/Comment.tsx
Status
scanned
Type
file
Name
Comment.tsx
Extension
.tsx
Programming language
TypeScript
Mime type
text/plain
File type
UTF-8 Unicode text
Tag

      
    
Rootfs path

      
    
Size
865 (865 bytes)
MD5
8705d24ac4f5ac820b6f161ed521d534
SHA1
12174aea20d02b25d1eb18968596ee781b1e5498
SHA256
02b486c1969f067c54587b037bd95d567f689c2fbc5a40473768f1a14dac5fc7
SHA512

      
    
SHA1_git
d52ac2b09cb7f7a54532d2e9851fd161d51eaafb
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Comment.tsx | 865 bytes |

// SPDX-License-Identifier: MIT // Copyright (c) 2024-2026 Acme Corp. // // Renders a single comment. Supports inline markup (bold, italics) so users // can format their posts. The Markdown→HTML conversion happens server-side // and the rendered HTML is passed in via the `body` prop. // // DEMO FIXTURE — known insecure pattern on line 23 (XSS via unsanitised HTML). // In production this would be sanitised with DOMPurify before reaching the DOM. interface CommentProps { body: string; // pre-rendered HTML from the server stamp: string; } export function Comment({ body, stamp }: CommentProps) { return ( <article className="comment"> <header> <time>{stamp}</time> </header> <div dangerouslySetInnerHTML={{ __html: body }} /> </article> ); }
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
4.4
Copyrights
- end_line: 2
  copyright: Copyright (c) 2024-2026 Acme Corp.
  start_line: 2
Holders
- holder: Acme Corp.
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mit-70c99094-5482-8374-7f01-91df318346a5 mit MIT
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript