pull url from tag content if there is no href
This commit is contained in:
parent
c5ce416c37
commit
89b88c2c41
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module Microformats2
|
||||||
|
|
||||||
class URL
|
class URL
|
||||||
def transform(property)
|
def transform(property)
|
||||||
property.attribute("href").to_s
|
(property.attribute("href") || property.text).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue