I have this code and as you can see it sets Variables.
Code
on *:sockread:radiotest: {
  if ($sockerr > 0) return
  var %radiotest | sockread -fn %radiotest
  if ($regex(%radiotest,/<body>(.*)<\/body>/)) {
    set %radiotest.song $gettok($regml(1),7-,44)
    if (%radiotest.song != %radiotest.lastsong) {
      msg %radiotest.room 4 DJ 11 %dj 4: %radiotest.song 
      set %radiotest.lastsong %radiotest.song
    }
  }
}

The variable is set like this
Code
%radiotest.song Drivin&apos; N&apos; Cryin&apos; - Fly Me Courageous

The output to the chat room is the same, whereas I want it like this.
Drivin' N' Cryin' - Fly Me Courageous
There are a couple of others with instances like this with chars. &, " etc.
I have seen code like
Code
$replace($1-,&apos;,')
but don't know how to implement it to get the variable changed to present to the chat room.
Thanks in advance for any help.