summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c43f124)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
void html_txt(char *txt)
{
char *t = txt;
void html_txt(char *txt)
{
char *t = txt;
int c = *t;
if (c=='<' || c=='>' || c=='&') {
*t = '\0';
int c = *t;
if (c=='<' || c=='>' || c=='&') {
*t = '\0';
void html_ntxt(int len, char *txt)
{
char *t = txt;
void html_ntxt(int len, char *txt)
{
char *t = txt;
+ while(t && *t && len--){
int c = *t;
if (c=='<' || c=='>' || c=='&') {
*t = '\0';
int c = *t;
if (c=='<' || c=='>' || c=='&') {
*t = '\0';
void html_attr(char *txt)
{
char *t = txt;
void html_attr(char *txt)
{
char *t = txt;
int c = *t;
if (c=='<' || c=='>' || c=='\'') {
*t = '\0';
int c = *t;
if (c=='<' || c=='>' || c=='\'') {
*t = '\0';
html_fileperm(mode >> 3);
html_fileperm(mode);
}
html_fileperm(mode >> 3);
html_fileperm(mode);
}