Hotspot login.html. Customization of the error received from RADIUS.

Hello

Please help me. I want the error returned by radius can be changed.
The use of such “if” causes an error:
$(if error == “user <*****> not found”)

You are not registered
$(endif)
$(if error == “invalid password”)
Bad password
$(endif)

The wiki says that you can compare only variables with strings without spaces.
$(if username == john)
Hey, your username is john

Tell me it is possible to use strings with spaces, “<”, “>”, and templates where it is not known what characters will be and how many of them.
Example: “user not found” , “user <123123124> not found”

ROS 6.41