# File lib/cgikit.rb, line 2214 def parse @_tmp = @html_string @_array = [] @_index = 0 string = body = tag = "" count = 0 flag = false _parse_char while tag = _next if ( _cgikit_tag?( tag ) == true ) or ( flag == true ) \ and ( _comment_tag?( tag ) == false ) then if flag == false then body = '' name = _name_cgikit_tag( tag ) end flag = true body << tag if _cgikit_tag?( tag ) then if _concluded_tag? tag # do nothing elsif _open_tag? tag count += 1 else count -= 1 end end if count == 0 then flag = false element = _create_element( name, _body_cgikit_tag( body ) ) if parsed = element.to_s then string << parsed end body = "" end else string << tag end end string end