<?php
/*
TemplateNamePosts: clubwp
*/
?>
location ~ /page/([0-9]+)/$ {}
location / {
rewrite (.+)/feed /$1 redirect;
rewrite (.+)/comment-page /$1 redirect;
rewrite (.+)/trackback /$1 redirect;
rewrite (.+)/comments /$1 redirect;
rewrite (.+)/attachment /$1 redirect;
if ($query_string ~* "^replytocom=") {
rewrite ^(.*)$ /$1? redirect;
}
if ($query_string ~* "^attachment_id=") {
rewrite ^(.*)$ /$1? redirect;
}
rewrite (.*)/([0-9]+)/$ /$1/ redirect;
}
function chistka() {
var s = document.getElementById('k1');
var result = s.value.replace(/(>)\s(<)/gmi, '$1\n$2');
s.value = result;
}
include('simple_html_dom.php');
$html = new simple_html_dom();
$html = str_get_html($k1);
$style = $html->find('style',0);
echo $style->outertext;
$body = $html->find('body',0);
echo $body->innertext;