I have an instance with a description:
instance = Object.new
instance.description = '<a href=www.google.com >Google</a>'
Then in the view, I display it using
= sanitize(instance.description)
It displays the link correct but when I hover over the link and I look at the url it will redirect to 'www.my-web-app.com/www.google.com' (it prepends the domain of my app to the correct url), anyone knows what's causing this? please help me.
Thanks in advance