aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/html.c b/html.c
index 957b326..8a69659 100644
--- a/html.c
+++ b/html.c
@@ -65,34 +65,6 @@ void html_txt(char *txt)
html(txt);
}
-void html_ntxt(int len, char *txt)
-{
- char *t = txt;
- while(*t && len--){
- int c = *t;
- if (c=='<' || c=='>' || c=='&') {
- *t = '\0';
- html(txt);
- *t = c;
- if (c=='>')
- html("&gt;");
- else if (c=='<')
- html("&lt;");
- else if (c=='&')
- html("&amp;");
- txt = t+1;
- }
- t++;
- }
- if (t!=txt) {
- char c = *t;
- *t = '\0';
- html(txt);
- *t = c;
- }
- if (len<0)
- html("...");
-}
void html_attr(char *txt)
{