You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your page layout. Which function do you apply to the text, when displaying it? (Choose 2)
Suggested Answer: B, D
Get Premium 200-710 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
TH
Thaddeus
1 year ago
No way, htmltidy() doesn't fit this scenario!
VI
Vinnie
1 year ago
Isn't showhtml() a thing? I'm not sure about that.
TI
Tijuana
1 year ago
Wait, can you really use strip_tags() here?
RI
Rikki
1 year ago
I think htmlspecialchars() is also a must!
DY
Dyan
1 year ago
Definitely need htmlentities() for that!
TY
Tyisha
1 year ago
I vaguely remember `htmltidy()` being mentioned, but I don't think it's for this purpose. It seems more like a cleanup tool.
RO
Rory
1 year ago
I feel like `htmlspecialchars()` is definitely one of the functions we should use, but I can't recall if `htmlentities()` is the other one.
TA
Tashia
1 year ago
I think `strip_tags()` is meant to remove HTML, but we want to display it safely, right? So that might not be the right choice.
KR
Kristine
1 year ago
I remember we discussed how to safely display user input in class, but I'm not sure if it's `htmlentities()` or `htmlspecialchars()` that we need.
RO
Rosann
1 year ago
I'm not entirely sure about this one. I'll make my best guess, but I might need to come back to it if I have time at the end.
TH
Thersa
1 year ago
I think the answer is A. The question specifically asks about the Cisco Meeting Server REST API, and the /activecalls resource seems like the most logical choice to retrieve active call information.
LO
Lonna
1 year ago
Hmm, I'm not entirely sure about this one. I'll need to think it through carefully and review my notes to make sure I get the right answer.