[&] What function does PHP provide to convert special characters into HTML entities? - htmlspecialchars() -- Correct - urlencode() - base64_encode() - htmlentities() [&] Which symbol is used to begin an HTML entity? - Semicolon (;) - Ampersand (&) -- Correct - Greater than (>) - Less than (<) [&] In the context of preventing cross-site scripting vulnerabilities, what should web developers do upon receiving user input? - Encode the inputs as HTML entities -- Correct - Never ask for user inputs to avoid risk - Store user inputs in a separate database - Only use inputs from trusted users [&] How does a browser interpret a string with special symbols if it is not HTML encoded? - As an error that needs correction - As HTML code which can alter the document structure -- Correct - As plain text with no formatting - As comments meant for developers only [&] What is the primary purpose of HTML encoding? - To compress HTML files for faster transmission - To enhance the performance of web browsers - To convert special characters into HTML entities to avoid unintended code interpretation -- Correct - To format text within HTML files more effectively