Can we have support for outputting field values and other text as HTML?
At the moment, to properly output text fields to HTML (handling the four HTML reserved characters < > " and &) requires every such placeholder e.g. %artist% to be replaced with $replace(%artist%,&,&,<,<,>,>,",")
This makes HTML scripts much more bulky and difficult to read and edit. The standard amd Export Configuration Archive HTML scripts don't do this, so they can go wrong on < > " and & in fields.
I suggest adding
a) an HTML version of every text placeholder e.g.
%placeholderH% . as %placeholder%, but converted to HTML (reserved characters representated as entities)
e.g.
%artist% => Francisco <> Lomuto
%artistH% => Francisco <<Pancho>> Lomuto
b) a function
$html(string) . string converted to HTML (reserved characters representated as entities)
e.g.
$html(The artist is Francisco <> Lomuto) => The artist is Francisco <<Pancho>> Lomuto
If only b) was implemented, the function might be better as $h(string), for compactness.
Traditionally single quotes could be used for quoting attribute values (as still used in this forums code!) and so escaping of them was needed, but I see no need today.