diff options
| author | 2025-02-15 14:37:36 +0100 | |
|---|---|---|
| committer | 2025-02-15 14:37:36 +0100 | |
| commit | 7611a6bee4bcbad2f1710aafa99aba730e5cf995 (patch) | |
| tree | 33ab7bee30379e16f6869b2efda5494be8aeb858 /xs_html.h | |
| parent | enforce tls when supported && add tests (diff) | |
| parent | Version 2.72 RELEASED. (diff) | |
| download | snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.tar.gz snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.tar.xz snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.zip | |
Merge tag '2.72' into curl-smtp
Version 2.72 RELEASED.
Diffstat (limited to 'xs_html.h')
| -rw-r--r-- | xs_html.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -114,7 +114,7 @@ xs_html *xs_html_text(const char *content) | |||
| 114 | xs_html *a = XS_HTML_NEW(); | 114 | xs_html *a = XS_HTML_NEW(); |
| 115 | 115 | ||
| 116 | a->type = XS_HTML_TEXT; | 116 | a->type = XS_HTML_TEXT; |
| 117 | a->content = xs_html_encode(content); | 117 | a->content = xs_is_string(content) ? xs_html_encode(content) : xs_str_new(NULL); |
| 118 | 118 | ||
| 119 | return a; | 119 | return a; |
| 120 | } | 120 | } |
| @@ -126,7 +126,7 @@ xs_html *xs_html_raw(const char *content) | |||
| 126 | xs_html *a = XS_HTML_NEW(); | 126 | xs_html *a = XS_HTML_NEW(); |
| 127 | 127 | ||
| 128 | a->type = XS_HTML_TEXT; | 128 | a->type = XS_HTML_TEXT; |
| 129 | a->content = xs_dup(content); | 129 | a->content = xs_is_string(content) ? xs_dup(content) : xs_str_new(NULL); |
| 130 | 130 | ||
| 131 | return a; | 131 | return a; |
| 132 | } | 132 | } |