let’s say I have an xml document like this
some text blah blahis there a simple method in nokogiri to:
step 1: convert all tags to something else (e.g.,
)
creating this…
some text blah blah
some text blah blah
step 2: remove all tags but keep the internal tags, creating
this
some text blah blah
I imagine that step 2 is done all the time and there’s probably a
simple way to do it, but I’m not sure where to begin with either.
file = Nokogiri::XML(File.new(file_name)) # <= this is about as far
as I’ve gotten (not very…)
Thanks!!