package devkit

  1. Overview
  2. Docs
module Raw : sig ... end
type elem =
  1. | Tag of string * (string * Raw.t) list
  2. | Script of (string * Raw.t) list * string
  3. | Style of (string * Raw.t) list * string
  4. | Text of Raw.t
  5. | Close of string
type ctx = {
  1. mutable lnum : int;
}
val get_lnum : ctx -> int
val init : unit -> ctx
val _htmlstream_trans_keys : int array
val _htmlstream_key_spans : int array
val _htmlstream_index_offsets : int array
val _htmlstream_indicies : int array
val _htmlstream_trans_targs : int array
val _htmlstream_trans_actions : int array
val _htmlstream_eof_actions : int array
val htmlstream_start : int
val htmlstream_first_final : int
val htmlstream_error : int
val htmlstream_en_in_script : int
val htmlstream_en_in_style : int
val htmlstream_en_garbage_tag : int
val htmlstream_en_main : int
type _htmlstream_state = {
  1. mutable keys : int;
  2. mutable trans : int;
}
exception Goto_match_htmlstream
exception Goto_again_htmlstream
exception Goto_eof_trans_htmlstream
val parse : ?ctx:ctx -> (elem -> unit) -> string -> unit

scan data for html tags and invoke call for every element

OCaml

Innovation. Community. Security.