ljsdev-ssg

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 89379973381120b88ce0da07b2b25880f9babb8c
parent 314a154e8f16ce427a975d4bee491e3cb8f26ad1
Author: Leon <leon@wp2static.com>
Date:   Mon, 19 Aug 2019 07:58:17 +0200

usage on php extractor

Diffstat:
Mextract-title-body-date.php | 3+++
Mimport-from-static-wp-export.sh | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/extract-title-body-date.php b/extract-title-body-date.php @@ -1,5 +1,8 @@ <?php +# usage: +# for file in src/*.html; do php extract-title-body-date.php "$file" > "$file"; done + # parse WordPress + Elementor generated HTML & return cleaned body content only function DOMinnerHTML(DOMNode $element) { $innerHTML = ""; diff --git a/import-from-static-wp-export.sh b/import-from-static-wp-export.sh @@ -9,3 +9,4 @@ find . -type d | sed 's|^./||' | xargs -I {} rm -Rf {} # restore wp-content dir git checkout -- wp-content +