PublicShow sourcehtml_output.pl -- SWISH HTML Output

This module provides the predicate html/1 that allows for inserting HTML into the SWISH output window as well as for evaluable cells in markdown cells of notebooks.

Source html(+Spec) is det
Insert HTML into the output. Spec is a term for html//1. For example:
?- html(b(['Hello ', i(style('color:blue'), world)])).
Source html(Spec)//
Sandbox respecting version of html_write:html//1.
Source safe_raw_html(+Raw0)
Helper for variables in html(\List).

Re-exported predicates

The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.

Source html(+Content, +Vars, +VarDict, -DOM) is det
The predicate html/4 implements HTML quasi quotations. These quotations produce a DOM term that is suitable for html//1 and other predicates that are declared to consume this format. The quasi quoter only accepts valid, but possibly partial HTML documents. The document must begin with a tag. The quoter replaces attributes or content whose value is a Prolog variable that appears in the argument list of the html indicator. If the variable defines content, it must be the only content. Here is an example, replacing both a content element and an attribute. Note that the document is valid HTML.
  html({|html(Name, URL)||
         <p>Dear <span class="name">Name</span>,

         <p>You can <a href="URL">download</a> the requested
         article now.
         |}