void cRssParserItem::SetDescription(const char *strP) { Utf8Strn0Cpy(descriptionM, strP, sizeof(descriptionM)); compactspace(descriptionM); striphtml(descriptionM); Utf8Strn0Cpy(descriptionM, convM.Convert(descriptionM), sizeof(descriptionM)); }
void cRssParserItem::SetTitle(const char *strP) { Utf8Strn0Cpy(titleM, strP, sizeof(titleM)); compactspace(titleM); striphtml(titleM); Utf8Strn0Cpy(titleM, convM.Convert(titleM), sizeof(titleM)); }
void cItem::SetDescription(const char *str) { char tmp[LONG_TEXT_LEN]; memset(tmp, 0, sizeof(tmp)); const char* codeset = cCharSetConv::SystemCharacterTable(); charsetconv(tmp, sizeof(tmp), str, strlen(str), "UTF8", codeset?codeset:"UTF-8"); compactspace(tmp); striphtml(tmp); debug("cItem::SetDescription nach striphtml:= '%s'", tmp); Utf8Strn0Cpy(description, tmp, sizeof(tmp)); }
void cItem::SetTitle(const char *str) { char tmp[SHORT_TEXT_LEN]; memset(tmp, 0, sizeof(tmp)); const char* codeset = cCharSetConv::SystemCharacterTable(); charsetconv(tmp, sizeof(tmp), str, strlen(str), "UTF8", codeset?codeset:"UTF-8"); compactspace(tmp); striphtml(tmp); debug("cItem::SetTitle(): '%s'", tmp); Utf8Strn0Cpy(title, tmp, sizeof(tmp)); }