* tag (and the self-closing / in XML mode for empty elements).
*/
public static function openElement( $element, $attribs = array() ) {
* tag (and the self-closing / in XML mode for empty elements).
*/
public static function openElement( $element, $attribs = array() ) {
$attribs = (array)$attribs;
# This is not required in HTML5, but let's do it anyway, for
# consistency and better compression.
$attribs = (array)$attribs;
# This is not required in HTML5, but let's do it anyway, for
# consistency and better compression.
- # '<' must be escaped in attributes for XML for some
- # reason, per spec: http://www.w3.org/TR/xml/#NT-AttValue
+ # This is allowed per spec: <http://www.w3.org/TR/xml/#NT-AttValue>
+ # But reportedly it breaks some XML tools? FIXME: is this
+ # really true?