HTML 2 Array – faster and better – v1.02

I’ve improved the class a lot and I’m still working on making it better. Now, it recovers the single tags (like img and meta and so on) and the rest the same time the other recovered without the single tags.
You have the option of ignoring the single tags. It’s actually much better (the algorithm is improved).
Anyway.. You can download it and view more on the google code page: http://code.google.com/p/php-html2array/



 
 
2 Comments:
  • Dieter M.
    <
    Dieter M. 22 October 2009 / 12:11

    Thank you for youre script!

    I found one small error:
    in function existSimpleTags
    you fetch all simple tags, but same named interlocked tags returned not correctly

    Example HTML-Code
    content

    Youre preg match returns only:
    content

    Later when replacement starts the remaining will not replaced.

    My regular expression knowledge is not good enought to fix it.
    Hope you can do it :-)

     
  • Dieter M.
    <
    Dieter M. 22 October 2009 / 12:13

    HTML-Tags removed hier without clasps.
    Example HTML-Code
    div id=”level1″ div id=”level2″ content /div /div

    Youre preg match returns only:
    div id=”level1″ div id=”level2″ content /div

     
 
Leave a comment
* Required.
* Required. Not published.
If you have one.

 

What we do

We do web programming and we do it at its best:
  • Websites based on MVC platform
  • Wordpress plugins and templates
  • Drupal modules and themes

Facebook for Business Purposes

 

Facebook has long ended in being just a social networking website and nobody could have predicted that it will be used as a powerful marketing tool. The fact that boosted the evolution of this socializing platform into such a powerful instrument is that nowadays it is available on any device that has a basic modern [...]