Lambda_soup_jsmodule Soup = LambdasoupUnfortunately, Soup.parse stack overflows on JavaScript:
https://github.com/aantron/markup.ml/issues/26
This is an alternative implementation that uses the browser's DOMParser API.
Note that to test this, you'll need to enable JSDom, and only run tests with JS and wasm.
val parse_dom : Js_of_ocaml.Dom.node Js_of_ocaml.Js.t -> Soup.soup Soup.node