Created
February 12, 2013 21:46
-
-
Save scudco/4773676 to your computer and use it in GitHub Desktop.
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
some_random_id = SecureRandom.hex | |
content = <<-EOS | |
<div id="#{some_random_id}"> | |
#{actual_html_to_parse} | |
</div> | |
EOS | |
html = Nokogiri.HTML(content) | |
# probably going to transform the data here... | |
html.css("##{some_random_id}").inner_html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment