was replacing inside script tags
-
Had to modify the regex as it was replacing text inside some javascript tags i had in the body content, so used:
$regex = “<script\b[^>]*>([\s\S]*?)<\/script>(*SKIP)(*F)|(?![<\[].*)\b({$old_text})\b(?![^<>\[\]]*?[\]>])”;
maybe could be added as an admin option, ignore replacements inside script tags?
- The topic ‘was replacing inside script tags’ is closed to new replies.