package tyxml

  1. Overview
  2. Docs
A library for building correct HTML and SVG documents

Install

Dune Dependency

Authors

Maintainers

Sources

tyxml-4.5.0.tbz
sha256=c69accef5df4dd89d38f6aa0baad01e8fda4e9e98bb7dad61bec1452c5716068
sha512=772535441b09c393d53c27152e65f404a0a541aa0cea1bda899a8d751ab64d1729237e583618c3ff33d75e3865d53503d1ea413c6bbc8c68c413347efd1709b3

doc/tyxml.functor/Html_f/Make_with_wrapped_functions/argument-3-Svg/Unsafe/index.html

Module Svg.Unsafe

Unsafe features.

Using this module can break SVG validity and may introduce security problems like code injection. Use it with care.

val data : string wrap -> 'a elt

Insert raw text without any encoding

val node : string -> ?a:'a attrib list -> 'b elt list_wrap -> 'c elt

Insert an XML node that is not implemented in this module. If it is a standard SVG node which is missing, please report to the Ocsigen team.

val leaf : string -> ?a:'a attrib list -> unit -> 'b elt

Insert an XML node without children that is not implemented in this module. If it is a standard SVG node which is missing, please report to the Ocsigen team.

val coerce_elt : 'a elt -> 'b elt

Remove phantom type annotation on an element, to make it usable everywhere.

val string_attrib : string -> string wrap -> 'a attrib

Insert an attribute that is not implemented in this module. If it is a standard SVG attribute which is missing, please report to the Ocsigen team.

val float_attrib : string -> float wrap -> 'a attrib

Same, for float attribute

val int_attrib : string -> int wrap -> 'a attrib

Same, for int attribute

val uri_attrib : string -> uri wrap -> 'a attrib

Same, for URI attribute

val space_sep_attrib : string -> string list wrap -> 'a attrib

Same, for a space separated list of values

val comma_sep_attrib : string -> string list wrap -> 'a attrib

Same, for a comma separated list of values

OCaml

Innovation. Community. Security.