The not-so-dirty way is to use one of the HTML parsing modules, and replace only appropriate parts of the page in the first place.s/<a (.+?)$__highlight_to_switch(.+?)>/<a $1$in{highlight_text}$2>/gi
Earth first! (We'll rob the other planets later)
In reply to Re: Switching out text only in a variable
by NetWallah
in thread Switching out text only in a variable
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |