Skip to content
Snippets Groups Projects
Commit b533278f authored by Travis Ralston's avatar Travis Ralston
Browse files

Remove style tags from URL previews. Fixes #44

parent de059c82
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ func calcDescription(html string) string { ...@@ -210,6 +210,7 @@ func calcDescription(html string) string {
doc.Find("footer").Remove() doc.Find("footer").Remove()
doc.Find("noscript").Remove() doc.Find("noscript").Remove()
doc.Find("script").Remove() doc.Find("script").Remove()
doc.Find("style").Remove()
return doc.Find("body").Text() return doc.Find("body").Text()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment