diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-02 20:10:54 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-06 10:08:09 -0700 |
commit | 464a611d8d5dbef8c3d62320f7b89e6c4ffaab53 (patch) | |
tree | b4c5e4a1221a9a3576215677ce762d5daf1bea7c /membuffer.h | |
parent | 1120379b2bcdc2d941bb2e036bacf34d226e74a1 (diff) | |
download | subsurface-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 'membuffer.h')
-rw-r--r-- | membuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/membuffer.h b/membuffer.h index ee0305eee..153815fd8 100644 --- a/membuffer.h +++ b/membuffer.h @@ -22,6 +22,7 @@ extern void free_buffer(struct membuffer *); extern void flush_buffer(struct membuffer *, FILE *); extern void put_bytes(struct membuffer *, const char *, int); extern void put_string(struct membuffer *, const char *); +extern void put_quoted(struct membuffer *, const char *, int, int); extern void strip_mb(struct membuffer *); extern const char *mb_cstring(struct membuffer *); extern __printf(2, 0) void put_vformat(struct membuffer *, const char *, va_list); |