lib/bookmarks/document.rb in bookmarks-0.2.2 vs lib/bookmarks/document.rb in bookmarks-0.2.3
- old
+ new
@@ -1,7 +1,5 @@
-# -*- encoding: utf-8 -*-
-
module Bookmarks
# Public: Document is your main interface to the file of bookmarks
# (called «document»).
class Document
@@ -99,10 +97,10 @@
# line - String.
#
# Returns String h3 content or empty string.
def h3_tags line
md = /<H3.*?>(.*?)<\/H3>/.match(line)
- md ? md[1] : ""
+ md ? CGI.unescapeHTML(md[1]) : ""
end
# First part of a bookmark's file in netscape format.
FIRST_PART = <<CODE