Replace temp variable with query

`selected`
Remove temp variable and method parameters

`stringified` and `replace_html_with_xhtml`
Rename method
Rename method
Comment
Rename method

`content` to `to_html`. This follows Nokogiri’s method names