Skip to content

Instantly share code, notes, and snippets.

@invalidusrname
Last active April 3, 2019 20:37
Show Gist options
  • Save invalidusrname/41303 to your computer and use it in GitHub Desktop.
Save invalidusrname/41303 to your computer and use it in GitHub Desktop.
converting html codes
# supposed to be Dash —
Hpricot("<p>Dash —</p>").to_plain_text
# => "Dash ?"
# would like text to convert to
#'Dash -'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment