From: Jeff D. <da...@da...> - 2001-11-11 15:53:38
|
On Sun, 11 Nov 2001 12:42:35 +0100 "Tara Star" <te...@cl...> wrote: > Can anybody tell me what the difference between Element() and QElement() > functions in lib/stdlib.php is? I've seen the code difference, but I'm > not sure when one should use Element and when one should use QElement. It looks like you've figured out the answer already but just in case: The only difference is that QElement runs the element contents through htmlspecialchars(). Htmlspecialchars() encodes characters like '<', '>', '&', etc... as HTML entities ('<', ...). So you should use Element() when the HTML element you're producing contains sub-elements, and QElement() when the elements contents are plain text. Does that help? |