Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Liferay Exam LRP-614 Topic 7 Question 58 Discussion

Actual exam question for Liferay's LRP-614 exam
Question #: 58
Topic #: 7
[All LRP-614 Questions]

The recommended way to escape text is:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Mollie
8 months ago
We should look at the documentation to see which method is officially recommended.
upvoted 0 times
...
Celestina
9 months ago
Interesting choices. I wonder which one is actually the recommended way.
upvoted 0 times
...
Buck
9 months ago
I always use F) GetterUtil.escape(). It works well for me.
upvoted 0 times
...
Mollie
9 months ago
I disagree. I believe A) StringUtil.escape() is the correct option.
upvoted 0 times
...
Celestina
9 months ago
I think D) JSPUtil.escape() is the recommended way to escape text.
upvoted 0 times
...
Alita
9 months ago
F) I always use GetterUtil.escape() because it works well for me.
upvoted 0 times
...
Arlene
9 months ago
E) FormUtil.escape() could also be a possible option.
upvoted 0 times
...
Marion
9 months ago
D) I remember using JSPUtil.escape() in my previous projects.
upvoted 0 times
...
Tonette
10 months ago
C) I'm not sure, but I think DisplayUtil.escape() might be the answer.
upvoted 0 times
...
Germaine
10 months ago
B) I disagree, I believe HtmlUtil.escape() is the correct way.
upvoted 0 times
...
Lashawn
10 months ago
A) I think the recommended way to escape text is StringUtil.escape().
upvoted 0 times
Lyndia
9 months ago
I think it might be HtmlUtil.escape().
upvoted 0 times
...
Mozell
9 months ago
I believe the recommended way to escape text is StringUtil.escape().
upvoted 0 times
...
...
Jesusa
11 months ago
GetterUtil.escape()? Really? I've never heard of that one before. Sounds like a made-up answer to confuse us.
upvoted 0 times
...
Eulah
11 months ago
Haha, FormUtil.escape() - that must be a joke answer, right? I can't imagine that's a real thing.
upvoted 0 times
...
Delisa
11 months ago
Hmm, I'm not familiar with some of these utility classes. DisplayUtil.escape() and JSPUtil.escape() don't sound like standard Java utilities to me.
upvoted 0 times
...
Merlyn
11 months ago
I'm not so sure about that. Isn't StringUtil.escape() a more generic way to escape text that could be used in different contexts, not just for HTML?
upvoted 0 times
...
Laurel
11 months ago
I think the answer is B) HtmlUtil.escape(). That's the most common way to escape text in web applications, right?
upvoted 0 times
...
Lelia
11 months ago
This is a tricky question! I'm not sure which one is the recommended way to escape text. Maybe we should look at the documentation for each of these utility classes.
upvoted 0 times
...

Save Cancel