Should std.conv:parse parse html entities?
Jonathan Marler
johnnymarler at gmail.com
Wed Nov 13 21:06:50 UTC 2019
On Wednesday, 13 November 2019 at 18:55:42 UTC, berni44 wrote:
> On Wednesday, 13 November 2019 at 18:31:09 UTC, Jonathan Marler
> wrote:
>> Maybe you could put the table inside a template so it only get
>> compiled/included when it's used?
>>
>> template HtmlEntityTable()
>> {
>> const HtmlEntityTable = ...;
>> }
>
> As far, as I understood the discussion in the bugreport, the
> problem with that is, that most of the time you'll not know if
> it will be needed, but most strings parsed (I assume, they are
> not available on compiletime) do not contain entities
> (presumably).
True, if its reachable through a high-level generic function then
it would be used most of the time. Sorry I'm not familiar with
which functions would be calling it, but for me, I've never
really needed a function that escaped valid D strings so I'm not
sure which specific function would be using this.
More information about the Digitalmars-d
mailing list