User Activity

  • Created ticket #67 on PHP Simple HTML DOM Parser

    Get only text in leaf nodes (avoid duplication)

  • Created ticket #205 on PHP Simple HTML DOM Parser

    End tags erroneously included in plaintext

  • Posted a comment on ticket #203 on PHP Simple HTML DOM Parser

    Actually it has to be done something like this, because this function can be called from inside the library, and we want to get the first call that is outside the library. PS! Is the maintainer active these days? Has been quiet for a while. diff --git a/HtmlNode.php b/HtmlNode.php index 9649d37..99dbda4 100644 --- a/HtmlNode.php +++ b/HtmlNode.php @@ -549,3 +554,12 @@ class HtmlNode { - return $this->find($selector, $idx, $lowercase) ?: null; + if(!$element = $this->find($selector, $idx, $lowercase))...

  • Posted a comment on ticket #204 on PHP Simple HTML DOM Parser

    diff --git a/HtmlNode.php b/HtmlNode.php index 9649d37..aef8b17 100644 --- a/HtmlNode.php +++ b/HtmlNode.php @@ -549,3 +549,12 @@ class HtmlNode + function first($selector, $idx = 0, $lowercase = false) + { + return $this->expect($selector, $idx, $lowercase); + } Missed semicolon and preformatting.

  • Created ticket #204 on PHP Simple HTML DOM Parser

    Convenience function for getting first element

  • Posted a comment on ticket #201 on PHP Simple HTML DOM Parser

    diff --git a/simple_html_dom.php b/simple_html_dom.php index bce4d9e..97d6e1d 100644 --- a/simple_html_dom.php +++ b/simple_html_dom.php @@ -117,3 +117,3 @@ function file_get_html( $dom->clear(); - return false; + $contents = ""; } @@ -144,5 +144,4 @@ function str_get_html( $dom->clear(); - return false; + $contents = ""; } - return $dom->load($str, $lowercase, $stripRN); Better version with tabs. PS! The inline editor and preview function on the site seems to hide the first line of content :|

  • Created ticket #203 on PHP Simple HTML DOM Parser

    Always tell user where he expected non-existing element

  • Created ticket #201 on PHP Simple HTML DOM Parser

    Never return false on documents

View All

Personal Data

Username:
olalav
Joined:
2007-07-21 06:44:48

Projects

  • No projects to display.

Personal Tools