in reply to Switching out text only in a variable
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)
|
|---|