Last active
April 3, 2019 20:37
-
-
Save invalidusrname/41303 to your computer and use it in GitHub Desktop.
converting html codes
This file contains hidden or 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
# 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