Instance Propertysliemeobn.elementary 0.5.0Elementary
text
The text content.
var text: String
The text content.
var text: String
import Elementary
struct HTMLText
A type that represents text content in an HTML document.
@frozen struct String
A Unicode string value that is a collection of characters.
init(_ text: String)
Creates a new text content with the specified text.
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering
init(_ text: some StringProtocol)
Creates a new text content with the specified text.