diff --git a/news_parser.js b/news_parser.js index eac69ae..dba9f25 100644 --- a/news_parser.js +++ b/news_parser.js @@ -77,6 +77,10 @@ return RemoveAfterSplitter(a_Url, separator, false); } + function ClearWWW(a_Url) { + return ( a_Url || '' ).replace( 'www.', '' ); + } + function ClearTextFuncTemplate(a_RemoveBeforeList, a_OnlyFirstIndex) { function ClearTextFunc(a_Content, a_ElementIndex) { if (a_OnlyFirstIndex && a_ElementIndex && a_ElementIndex != 1) { @@ -469,7 +473,7 @@ if (content.length > 0) { result = ''; }