    # File lib/ramaze/gestalt.rb, line 99
        def _gestalt_build_tag(name, attr = {}, text = [])
          @out << "<#{name}"
          @out << attr.map{|(k,v)| %[ #{k}="#{_gestalt_escape_entities(v)}"] }.join
          if text != [] or block_given?
            @out << ">"
            @out << _gestalt_escape_entities([text].join)
            if block_given?
              text = yield
              @out << text.to_str if text != @out and text.respond_to?(:to_str)
            end
            @out << "</#{name}>"
          else
            @out << ' />'
          end
        end