Escape characters in login.html variables?

Hello,
I have a url in $error variable (passed by freeradius in reply-message):
Please](https://myurl.com/?area=23&mac_address=00:15:c5:0f:f0:41%22%3EPlease) sign up

Sending Access-Reject of id 155 to 192.168.254.45 port 52815
        Reply-Message := "<a href=\"https://myurl.com/?area_id=37&mac_address=00:15:c5:0f:f0:45\">Please sign up</a> "

Problem is when I use this variable in login.html all “<” and “&” get replaced with ;lt and ;amp

Is there any escape characters or methods that will prevent this?

Thanks

Anyone?
Let me re-phrase the question:
how to paste url from a variable in html hotspot pages?

That won’t work, but you can tell the RADIUS to send some special word upon error, and then replace that workd with a link:

$(if error-orig == please_sign_up)
 <a href=\"https://myurl.com/?area_id=37&mac_address=$(mac)\">Please sign up</a>
$(elif error)
 $(error)
$(endif)

In this case, RADIUS would send please_sign_up and the login page would replace it with a link

Thanks for reply,
thats how we are doing it right now.
I would like to centralize controls over urls as much as possible.
This way if we decide not to use “mac_address” variable and replace it with “mac2-address” i would have to go though every hotspot device and change login.html.
If we would pass this url through radius reply this change would be very easy - just change freeradius reply.