diff options
-rw-r--r-- | save-html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/save-html.c b/save-html.c index 45bec2a96..609ab9e84 100644 --- a/save-html.c +++ b/save-html.c @@ -49,10 +49,10 @@ char *replace_char(char *str, char replace, char *replace_by) char *quote(char *string) { - char *new_line_removed = replace_char(string, '\n', "<br>"); - char *less_than_removed = replace_char(new_line_removed, '<', "<"); + char *less_than_removed = replace_char(string, '<', "<"); char *greater_than_removed = replace_char(less_than_removed, '>', ">"); - char *double_quotes_removed = replace_char(greater_than_removed, '"', """); + char *new_line_removed = replace_char(greater_than_removed, '\n', "<br>"); + char *double_quotes_removed = replace_char(new_line_removed, '"', """); char *single_quotes_removed = replace_char(double_quotes_removed, '\'', "'"); free(new_line_removed); free(less_than_removed); |