{"id":2225,"date":"2020-12-07T09:03:07","date_gmt":"2020-12-07T08:03:07","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2225"},"modified":"2020-12-25T08:58:05","modified_gmt":"2020-12-25T07:58:05","slug":"regex-replace-atteggiamento-the-text-within-an-html-tag","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2225","title":{"rendered":"regex replace all the text within an html tag"},"content":{"rendered":"\n<p>If you want, for example, delete all styles tag within several html in an epub file, keeping only the stylesheet linked in them, you can use this command:<\/p>\n\n\n\n<p><code>&lt;style type=\"text\/css\"&gt;(.|\\n)*?&lt;\\\/style&gt;<\/code><\/p>\n\n\n\n<p>Calibre editor in this case is better than Sigil, for epub files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want, for example, delete all styles tag within several html in an epub file, keeping only the stylesheet linked in them, you can use this command: &lt;style type=&#8221;text\/css&#8221;&gt;(.|\\n)*?&lt;\\\/style&gt; Calibre editor in this case is better than Sigil, for epub files.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[642,565,566],"tags":[483,227,643,180],"class_list":["post-2225","post","type-post","status-publish","format-standard","hentry","category-epub","category-office","category-webmaster","tag-html","tag-regex","tag-replace","tag-tags"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2225"}],"version-history":[{"count":6,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225\/revisions"}],"predecessor-version":[{"id":2267,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2225\/revisions\/2267"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}