1010@freestanding ( expression)
1111public macro escapeHTML(
1212 encoding: HTMLEncoding = . string,
13+ representation: HTMLResultRepresentation = . literalOptimized,
1314 _ innerHTML: CustomStringConvertible & Sendable ...
1415) -> String = #externalMacro( module: " HTMLKitMacros " , type: " EscapeHTML " )
1516
1617// MARK: HTML
1718/// - Returns: The inferred concrete type that conforms to `CustomStringConvertible & Sendable`.
1819@freestanding ( expression)
1920//@available(*, deprecated, message: "innerHTML is now initialized using brackets instead of parentheses")
20- public macro html< T: CustomStringConvertible & Sendable > (
21+ public macro html< T> (
2122 encoding: HTMLEncoding = . string,
23+ representation: HTMLResultRepresentation = . literalOptimized,
2224 lookupFiles: [ StaticString ] = [ ] ,
2325 _ innerHTML: CustomStringConvertible & Sendable ...
2426) -> T = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElementMacro " )
2527
2628// MARK: HTML
2729/// - Returns: The inferred concrete type that conforms to `CustomStringConvertible & Sendable`.
2830@freestanding ( expression)
29- public macro html< T: CustomStringConvertible & Sendable > (
31+ public macro html< T> (
3032 encoding: HTMLEncoding = . string,
33+ representation: HTMLResultRepresentation = . literalOptimized,
3134 lookupFiles: [ StaticString ] = [ ] ,
3235 _ innerHTML: ( ) -> CustomStringConvertible & Sendable ...
3336) -> T = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElementMacro " )
@@ -36,6 +39,7 @@ public macro html<T: CustomStringConvertible & Sendable>(
3639@freestanding ( expression)
3740public macro anyHTML(
3841 encoding: HTMLEncoding = . string,
42+ representation: HTMLResultRepresentation = . literalOptimized,
3943 lookupFiles: [ StaticString ] = [ ] ,
4044 _ innerHTML: CustomStringConvertible & Sendable ...
4145) -> any CustomStringConvertible & Sendable = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElementMacro " )
@@ -47,6 +51,7 @@ public macro anyHTML(
4751@freestanding ( expression)
4852public macro uncheckedHTML< T: CustomStringConvertible & Sendable > (
4953 encoding: HTMLEncoding = . string,
54+ representation: HTMLResultRepresentation = . literalOptimized,
5055 lookupFiles: [ StaticString ] = [ ] ,
5156 _ innerHTML: CustomStringConvertible & Sendable ...
5257) -> T = #externalMacro( module: " HTMLKitMacros " , type: " HTMLElementMacro " )
@@ -58,6 +63,7 @@ public macro uncheckedHTML<T: CustomStringConvertible & Sendable>(
5863@freestanding ( expression)
5964public macro rawHTML< T: CustomStringConvertible & Sendable > (
6065 encoding: HTMLEncoding = . string,
66+ representation: HTMLResultRepresentation = . literalOptimized,
6167 lookupFiles: [ StaticString ] = [ ] ,
6268 minify: Bool = false ,
6369 _ innerHTML: CustomStringConvertible & Sendable ...
@@ -69,6 +75,7 @@ public macro rawHTML<T: CustomStringConvertible & Sendable>(
6975@freestanding ( expression)
7076public macro anyRawHTML(
7177 encoding: HTMLEncoding = . string,
78+ representation: HTMLResultRepresentation = . literalOptimized,
7279 lookupFiles: [ StaticString ] = [ ] ,
7380 minify: Bool = false ,
7481 _ innerHTML: CustomStringConvertible & Sendable ...
0 commit comments