From 464a611d8d5dbef8c3d62320f7b89e6c4ffaab53 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Mon, 2 Jun 2014 20:10:54 +0300 Subject: 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 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- save-html.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'save-html.h') 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); -- cgit v1.2.3-70-g09d2