[fpc-devel] HTML string to TFPColor
Michael Van Canneyt
michael at freepascal.org
Sun Jul 23 18:09:36 CEST 2017
On Sun, 23 Jul 2017, Werner Pamler wrote:
> Another, related topic would be: Replacement of HTML entities, e.g.
> convert a string such as 'cm<sup>2<M/sup>' to
> 'cm<sup>2</sup>', or 'sin α + cos β' to the one with the
> correct greek symbols (utf8). I have a solution in TAChart, unit TAHtml,
> but maybe (probably...) there's a better one.
This exists:
function ResolveHTMLEntityReference(const Name: WideString; var Entity: WideChar): Boolean;
is in unit htmldefs, fcl-xml package.
Michael.
More information about the fpc-devel
mailing list