Convert rich snippets html to rails