Skip to content

Hext v1.0.1

Compare
Choose a tag to compare
@thomastrapp thomastrapp released this 17 Dec 17:19
· 89 commits to master since this release

Static binary releases

Install the htmlext command-line utility and Hext for Python (v3.10 or earlier):

pip install hext

Install Hext for Node (v17 or earlier):

npm install hext

Both are compatible with Linux (x86_64) and Mac OS X ≥ 10.11.

Hext for WebAssembly

Hext Emscripten v1.0.1
See html-extract/hext-emscripten for more.

Changes

  • Language bindings: rule.extract now supports the optional parameter max_searches, which is of type unsigned int. The search for matching elements is aborted after this limit is reached. The default is 0, which never aborts. If running untrusted hext templates, I recommend setting max_searches to some high value, like 10000, to protect against resource exhaustion.
  • Consistent versions: htmlext, libhext and pypi now share the same version number, enforced by CI. The NPM package has the same version but incremented by 10.
  • Refactored build and CI scripts