Html escaping for security: howto in D?

aberba karabutaworld at gmail.com
Tue Jul 7 23:19:46 UTC 2020


On Tuesday, 7 July 2020 at 20:21:19 UTC, aberba wrote:
> On Tuesday, 7 July 2020 at 17:59:21 UTC, Fitz wrote:
>> On Monday, 6 July 2020 at 15:13:30 UTC, aberba wrote:
>>
>>> If you want to completely removed all tags, 
>>> https://code.dlang.org/packages/plain might be better.
>>
>> seems overkill, just implemented something simple:
>> // 
>> https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
>
>I believe Adam (arsd) has some function in his
> library for doing html entities of tags.

See 
https://dpldocs.info/experimental-docs/arsd.dom.htmlEntitiesEncode.html



More information about the Digitalmars-d mailing list