--- title: Inline Style & Scripts description: Add inline scripts and styles with textContent and innerHTML. Security best practices for XSS prevention and performance optimization. --- **Quick Answer:** Use `textContent` for inline scripts and styles, `innerHTML` only when you need HTML entities. Example: `script: [{ textContent: 'console.log("Hello")' }]` ## What Are Inline Styles and Scripts in Unhead? The `