Htmlcxx Installation On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

Htmlcxx Installation On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

htmlcxx

simple HTML/CSS1 parser library for C++ (development)

Maintainer: Ludovico Cavedon



Section: libdevel

Install htmlcxx

  • Debian apt-get install libhtmlcxx-dev Click to copy
  • Ubuntu apt-get install libhtmlcxx-dev Click to copy
  • Kali Linux apt-get install libhtmlcxx-dev Click to copy
  • Fedora dnf install htmlcxx Click to copy
  • Raspbian apt-get install libhtmlcxx-dev Click to copy
  • macOS brew install htmlcxx Click to copy

libhtmlcxx-dev

simple HTML/CSS1 parser library for C++ (development)

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 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 (http://www.mozilla.org) 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. This package contains files required for developing software that makes use of htmlcxx.

htmlcxx

C++
Installation of latest htmlcxx command is available for Debian, Ubuntu, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.