I need to pass the image link from the controller to js
controller function():
imgs = ["<img src=\"{{=URL('static','images/3.jpg')}}\" style=\"max-height='100px';border-radius:7px;\"/>"]
view page
code.....
return sendMessage(`{{=imgs}}<br>{{=XML(test_text,sanitize=True)}}`)
So far i'm getting only a string as previously stated.
If I insert the string directly, then i'm able to view the image but not importing from the controller.
Is there a way of importing the link and inserting it into the js code ?
Better yet, a way of getting the image from database.
Regards