You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
attributes_func +=#"if let \#(key){ items.append("\#(key_literal)=\\\"" + \#(value)+ "\\\"") }"#
and elsewhere triple-backslash was used in the expansion, but this is causing extra backslashes to be added to Data and ByteBuffer outputs (easily seen on full macro expansions, decimal 92 in the byte sequence). I understand this was added to correctly escape String outputs, where the compiler will take care of the unescaping, but perhaps this is better served by #""# or some other type of special handling for Data and ByteBuffer.
The text was updated successfully, but these errors were encountered:
Manifests as
and similarly with
src=\"
,rel=\"
,class=\"
... onscript
,link
,div
(etc) tags.I've pinpointed the reason to
swift-htmlkit/Sources/HTMLKitUtilityMacros/HTMLElements.swift
Line 175 in c9f9335
and elsewhere triple-backslash was used in the expansion, but this is causing extra backslashes to be added to Data and ByteBuffer outputs (easily seen on full macro expansions, decimal
92
in the byte sequence). I understand this was added to correctly escape String outputs, where the compiler will take care of the unescaping, but perhaps this is better served by#""#
or some other type of special handling for Data and ByteBuffer.The text was updated successfully, but these errors were encountered: