/ Published in: PHP
A simple script to run with drush to clean all Drupal nodes containing style tags.
Expand |
Embed | Plain Text
<?php $results = db_query("SELECT DISTINCT nid from node_revisions WHERE body REGEXP '<style>.*</style>' OR body REGEXP '<style>.*</style>'"); while($nid = db_result($results)) { $node = node_load($nid); node_save($node); } ?>
You need to login to post a comment.
