20 Feb
2015
20 Feb
'15
12:13 p.m.
On 02/20/2015 08:25 AM, Olaf van der Spek wrote:
On Wed, Feb 18, 2015 at 1:44 PM, Mathias Gaunard
wrote:
htmlspecialchars is just replacing < with <, > with > and & with & (optionally " with " and ' with ' as well).
This does not take DTDs into account.
It's a trivial application of the replace algorithm to the world of HTML and XML. I'm not sure the string algorithm lib is the right place for it, maybe an XML lib would be better.
Does Boost have a XML lib?
No (I do not count the XML parser in Boost.PropertyTree as an XML lib.) There was a Boost.XML project at GSoC last year about creating C++ wrappers for other XML libraries, such as libxml2, but I do not know its current status.