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&lt;sup&gt;2&ltM/sup&gt' to 'cm<sup>2</sup>', or 'sin &alpha; + cos &beta;' 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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to