nn_element(element, attributes = {})
Generate code for an element with required start and end tags.
- -
# File lib/cgi/html.rb, line 12 def nn_element(element, attributes = {}) s = nOE_element(element, attributes) if block_given? s << yield.to_s end s << "</#{element.upcase}>" end