Ignore:
Timestamp:
Jul 1, 2003, 11:27:20 AM (21 years ago)
Author:
z0rglub
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_xml.inc.php

    r13 r21  
    1919define( ATT_REG, '\w+' );
    2020define( VAL_REG, '[^"]*' );
    21 
    2221//------------------------------------------------------------------- functions
    2322// getContent returns the content of a tag
     
    3332  $content = preg_replace( '/^<[^>]+>/', '', $element );
    3433  // deleting end of the tag
    35   $content = preg_replace( '/<\/\w+>$/', '', $content );
     34  $content = preg_replace( '/<\/[^>]+>$/', '', $content );
    3635  // replacing multiple instance of space character
    3736  $content = preg_replace( '/\s+/', ' ', $content );
     
    4039}
    4140
    42 // The function get Attribute returns the value corresponding to the attribute
    43 // $attribute for the tag $element.
     41// The function get Attribute returns the value corresponding to the
     42// attribute $attribute for the tag $element.
    4443function getAttribute( $element, $attribute )
    4544{
Note: See TracChangeset for help on using the changeset viewer.