|
|
|
@ -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 = '<textarea id = "news_content" rows="10" cols="100">' + content; |
|
|
|
|
if (source_add) { |
|
|
|
|
result += '<p style="text-align: justify;">Источник: <a href = "' + ClearUrl(document.URL) + '">' + (host_name || location.hostname) + '</a></p>'; |
|
|
|
|
result += '<p style="text-align: justify;">Источник: <a href = "' + ClearUrl(document.URL) + '">' + ClearWWW(host_name || location.hostname) + '</a></p>'; |
|
|
|
|
} |
|
|
|
|
result += '</textarea>'; |
|
|
|
|
} |
|
|
|
|