Puddinq.com sharing knowledge

Remove sql injected script tags from content in WorPress using wp cli

Remove sql injected script tags from content in WorPress using wp cli

wp search-replace '<script(.*?)>\$(.+?)<\/script>' '' --regex --precise --regex-flags='i' wpnt_posts --include-columns=post_content --report-changed-only