engine/src/PodcastUtils.cpp
changeset 21 420a1b4930da
parent 19 9219912415dc
child 90 50edf2be6f0d
equal deleted inserted replaced
20:c92d8384952c 21:420a1b4930da
    66 	}
    66 	}
    67 
    67 
    68 
    68 
    69 EXPORT_C void PodcastUtils::CleanHtmlL(TDes &str)
    69 EXPORT_C void PodcastUtils::CleanHtmlL(TDes &str)
    70 {
    70 {
       
    71 
       
    72 	if (str.Length() == 0)
       
    73 		{
       
    74 		return;
       
    75 		}
       
    76 	
    71 // miscellaneous cleanup
    77 // miscellaneous cleanup
    72 	const TChar KLineBreak(CEditableText::ELineBreak); 
    78 	const TChar KLineBreak(CEditableText::ELineBreak); 
    73 	_LIT(KNewLine, "\n");
    79 	_LIT(KNewLine, "\n");
    74 	_LIT(KNewLineWindows, "\r\n");
    80 	_LIT(KNewLineWindows, "\r\n");
    75 	ReplaceString(str, KNewLine, KNullDesC);
    81 	ReplaceString(str, KNewLine, KNullDesC);