From cc3429220b19df8c5ca6abf28a02cd38d08de32d Mon Sep 17 00:00:00 2001 From: Vasco Date: Mon, 24 Aug 2026 17:47:30 +0100 Subject: Cool 0.0.0. Rend 1.0.4. --- Cool/demos/cool.html | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Cool/demos/cool.html (limited to 'Cool/demos/cool.html') diff --git a/Cool/demos/cool.html b/Cool/demos/cool.html new file mode 100644 index 0000000..b75c841 --- /dev/null +++ b/Cool/demos/cool.html @@ -0,0 +1,56 @@ +
+

cool_sv_write

+ COOLDEF void cool_sv_write(Cool_StrView sv) +
+ Write string view to output. + +
+
+
+

cool_html

+ COOLDEF void cool_html(Cool_StrView sv) +
+ SAFELY write HTML to a buffer. Handles escaping malicious sequences. + +
+
+
+

cool_html_raw

+ COOLDEF void cool_html_raw(Cool_StrView sv) +
+ Writes HTML to buffer without escaping sequences. Vulnerable to XSS. Use with caution. + +
+
+
+

cool_html_raw_cstr

+ COOLDEF void cool_html_raw_cstr(const char *str, size_t len) +
+ Writes unsafe HTML using C strings. + +
+
+
+

cool_html_txt

+ COOLDEF void cool_html_txt(const char *str, size_t len) +
+ Meant for inner text. Escapes '<', '>' and '&'. + +
+
+
+

cool_htmlf

+ COOLDEF void cool_htmlf(const char *fmt, ...) +
+ SAFELY write formatted string to buffer. + +
+
+
+

cool_htmlf_raw

+ COOLDEF void cool_htmlf_raw(const char *fmt, ...) +
+ Writes formatting HTML string to buffer without escaping sequences. Vulnerable to XSS. Use with caution. + +
+
-- cgit v1.3.1