summaryrefslogtreecommitdiffstats
path: root/save-html.h
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-06-02 20:10:54 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-06 10:08:09 -0700
commit464a611d8d5dbef8c3d62320f7b89e6c4ffaab53 (patch)
treeb4c5e4a1221a9a3576215677ce762d5daf1bea7c /save-html.h
parent1120379b2bcdc2d941bb2e036bacf34d226e74a1 (diff)
downloadsubsurface-464a611d8d5dbef8c3d62320f7b89e6c4ffaab53.tar.gz
HTML: Better quoting to the export strings
Move the quote function to membuffer.c and adding wrappers that call it from both xml and html exporters to get rid of redundancy. Quote the location, buddy, suit, tags and notes This prevents js code from crashing. [Miika Turkia: minor whitespace and code fix] Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-html.h')
-rw-r--r--save-html.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/save-html.h b/save-html.h
index 47f6d218d..96813f39b 100644
--- a/save-html.h
+++ b/save-html.h
@@ -13,9 +13,7 @@ void put_HTML_airtemp(struct membuffer *b, struct dive *dive, const char *pre, c
void put_HTML_watertemp(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
void put_HTML_time(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
void put_HTML_notes(struct membuffer *b, struct dive *dive, const char *pre, const char *post);
-
-char *replace_char(char *str, char replace, char *replace_by);
-char *quote(char *string);
+void put_HTML_quoted(struct membuffer *b, const char *text);
void export_HTML(const char *file_name, const bool selected_only);