This project provide basic HTML parser with support for these html tags b, body, br, doctype, h, h1, h2, h3, h4, h5, h6, head, html, i, table, td, title, tr and u. The project also include Rspec unit tests for testing and debugging.
./main.rb
orruby main.rb
rspec ./spec/
# ***************************************************************************
# * Copyright (C) 2013 by Marek Hakala *
# * hakala.marek@gmail.com *
# *
# * Semester project for MI-RUB @ CTU FIT
# * Topic: HTML parser
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU Library General Public License as *
# * published by the Free Software Foundation; either version 2 of the *
# * License, or (at your option) any later version. *
# * *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# * GNU General Public License for more details. *
# * *
# * You should have received a copy of the GNU Library General Public *
# * License along with this program; if not, write to the *
# * Free Software Foundation, Inc., *
# * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
# ***************************************************************************/