Skip to content

Sanitise html in barcodes

Joe Dight requested to merge joedight/spectacle:sanitizeBarcodes into master

Hopefully fairly straightforward. Perhaps worth saying that I don't think there's an equivalent of QString::toHtmlEscaped to use, or I'd do that.
Test cases:

<b>test</b> qr code
< > ' " & qr code
https://example.com/?a="b"&x=10 qr code

Thanks.

Edited by Joe Dight

Merge request reports