BSD Ports

www/htmlcxx 0.85 NetBSD

Simple non-validating CSS1 and HTML parser for C++

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
gnu-lgpl-v2 AND apache-2.0
Categories
www
Package size
94.2 KiB, 555.7 KiB installed

Description

htmlcxx is a simple non-validating CSS1 and HTML parser for C++. Although there are several other HTML parsers available, htmlcxx has some characteristics that make it unique:

* STL like navigation of DOM tree, using the excellent tree.hh library from Kasper Peeters * It is possible to reproduce exactly, character by character, the original document from the parse tree * Bundled css parser * Optional parsing of attributes * C++ code that looks like C++ (not so true anymore) * Offsets of tags/elements in the original document are stored in the nodes of the DOM tree

The parsing politics of htmlcxx were created trying to mimic Mozilla Firefox behavior. So you should expect parse trees similar to those create by Firefox. However, differently from Firefox, htmlcxx does not insert non-existent stuff in your html. Therefore, serializing the DOM tree gives exactly the same bytes contained in the original HTML document.

In the other systems

SystemPortVersion
NetBSDwww/htmlcxx0.85
FreeBSDwww/htmlcxx0.87
DragonFlywww/htmlcxx0.87
HardenedBSDwww/htmlcxx0.87
GhostBSDwww/htmlcxx0.87

Install

Binary package:

pkgin install htmlcxx

From pkgsrc:

cd /usr/pkgsrc/www/htmlcxx && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.85
NetBSD 10.1 aarch640.85
SmartOS / illumos x86_640.85
macOS 15 arm640.85

Dependencies

No port depends on this one.