function to return from html to Rhtml