Unidiff1 files changed, 5 insertions, 15 deletions
|
diff --git a/html.c b/html.c index eb163d9..339bf00 100644 --- a/ html.c+++ b/ html.c |
|
@@ -50,5 +50,3 @@ void html_txt(char *txt) |
50 | if (c=='<' || c=='>' || c=='&') { |
50 | if (c=='<' || c=='>' || c=='&') { |
51 | *t = '\0'; |
51 | write(htmlfd, txt, t - txt); |
52 | html(txt); |
| |
53 | *t = c; |
| |
54 | if (c=='>') |
52 | if (c=='>') |
@@ -73,5 +71,3 @@ void html_ntxt(int len, char *txt) |
73 | if (c=='<' || c=='>' || c=='&') { |
71 | if (c=='<' || c=='>' || c=='&') { |
74 | *t = '\0'; |
72 | write(htmlfd, txt, t - txt); |
75 | html(txt); |
| |
76 | *t = c; |
| |
77 | if (c=='>') |
73 | if (c=='>') |
@@ -86,8 +82,4 @@ void html_ntxt(int len, char *txt) |
86 | } |
82 | } |
87 | if (t!=txt) { |
83 | if (t!=txt) |
88 | char c = *t; |
84 | write(htmlfd, txt, t - txt); |
89 | *t = '\0'; |
| |
90 | html(txt); |
| |
91 | *t = c; |
| |
92 | } |
| |
93 | if (len<0) |
85 | if (len<0) |
@@ -102,5 +94,3 @@ void html_attr(char *txt) |
102 | if (c=='<' || c=='>' || c=='\'') { |
94 | if (c=='<' || c=='>' || c=='\'') { |
103 | *t = '\0'; |
95 | write(htmlfd, txt, t - txt); |
104 | html(txt); |
| |
105 | *t = c; |
| |
106 | if (c=='>') |
96 | if (c=='>') |
|