shaarli / netscape-bookmark-parser

PHP library to parse Netscape bookmark files
https://packagist.org/packages/shaarli/netscape-bookmark-parser
MIT License
22 stars 10 forks source link

New feature, parse "ICON" property. #67

Closed TangoMan75 closed 3 years ago

TangoMan75 commented 3 years ago

parseString method now returns and array containing a new icon property :

[
  "uri" => "https://discord.com/"
  "icon" => "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8..."
  "title" => "Discord"
  "note" => "foobar"
  "tags" => [
        "bookmarks",
        "bar",
  ]
  "time" => 1592775139
  "pub" => false
]

Also, renamed some variables inside parseString method: eg: $m1 => $href, $m2 => $title...

This is mostly for semantics, and will not impact behavior in any way.