Skip to content

Instantly share code, notes, and snippets.

@walidvb
Created September 16, 2014 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walidvb/075f5cca43cedb00e1c8 to your computer and use it in GitHub Desktop.
Save walidvb/075f5cca43cedb00e1c8 to your computer and use it in GitHub Desktop.
mystring = "Charles Dickens first serialised&nbsp;<i>Great Expectations</i>&nbsp;to rave reviews in&nbsp;1859 and its wit, power and brilliance is just as fresh today.&nbsp;You may have read this story&nbsp;of first love and lost identity&nbsp;before,&nbsp;but not like this.<br>"
#In my view: - content_for :og_description = mystring
#in my layout.haml: %meta{content: CGI.unescapeHTML(strip_tags(yield(:og_description)))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment