← All tasks
🧮
Beginner

Write Output Encoding to Prevent XSS

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression to safely output a user-supplied string into an HTML page.

Scenario

A profile page displays a user's bio directly, and needs to prevent any embedded script from executing.

Ready to try it?

Create a free account and subscribe to take "Write Output Encoding to Prevent XSS". Earn 90 XP and track your internship progress.

Already have an account? Sign in