Support » Plugin: Linkify Text » 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?

    • This topic was modified 2 years, 7 months ago by  marketsys.
  • The topic ‘was replacing inside script tags’ is closed to new replies.