I'm running into a bit of trouble trying to display font awesome icons. The text is written in json using a rakefile, and I'm attempting to insert a font awesome icon within the text. However, I'm facing difficulties because the text is in json format. Can someone please take a quick look and assist me with this issue? The icon is not showing up on the front end, but there's extra space for it in the dev tools.
My setup involves haml and angular on the front end. I don't believe it's necessary to showcase the controller for this specific problem. Also, I replaced actual content with placeholder text for demonstration purposes.
The section in my rakefile looks like this:
{
"partial":"message",
"params":{
"primary": true,
"icon": "<i class='fa fa-odnoklassniki'></i>",
"body":" With Placeholder Text as your president, you can have the full assurance of knowing that your country will be awesome "
}
},
The haml file responsible for rendering this content is located here:
%div{ 'ng-if' => 'option.params.primary' && 'option.params.icon'}
%div{ 'ng-include' => "'/assets/ng/features/politicians/satire/presidents.html'" }