-
-
Save walidvb/075f5cca43cedb00e1c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mystring = "Charles Dickens first serialised <i>Great Expectations</i> to rave reviews in 1859 and its wit, power and brilliance is just as fresh today. You may have read this story of first love and lost identity before, 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