RawText constructor

const RawText(
  1. String text, {
  2. Key? key,
})

Creates a component that renders text as raw HTML.

WARNING: This component does not escape any user input and is vulnerable to cross-site scripting (XSS) attacks. Make sure to sanitize any user input when using this component.

Implementation

const RawText(this.text, {super.key});