Match "hashflag" elements when parsing tweets
This commit is contained in:
parent
089cea0042
commit
8ddb913912
|
@ -60,7 +60,7 @@ proc parseText*(text: XmlNode; skipLink=""): string =
|
||||||
if "u-hidden" in class and result.len > 0:
|
if "u-hidden" in class and result.len > 0:
|
||||||
result.add "\n"
|
result.add "\n"
|
||||||
result.add a(shortLink(url), href=url)
|
result.add a(shortLink(url), href=url)
|
||||||
elif "ashtag" in class:
|
elif "ashtag" in class or "hashflag" in class:
|
||||||
let hash = el.innerText()
|
let hash = el.innerText()
|
||||||
result.add a(hash, href=("/search?q=" & encodeUrl(hash)))
|
result.add a(hash, href=("/search?q=" & encodeUrl(hash)))
|
||||||
elif "atreply" in class:
|
elif "atreply" in class:
|
||||||
|
|
Loading…
Reference in New Issue