Your string quoting is wrongful.
Try “” (double quotes) on the outside, and use ’ (single) quotes for attribute values.
For example:pre = "<i class='fa fa-newspaper-o' aria-hidden='true'></i>"
Use double quotes outside. Use single quotes for attribute values.
name = '<img src="/img/logo-1-4-12.png" alt="Sensr.net Cloud DVR for your Security camera">'
Should be:
name = "<img src='/img/logo-1-4-12.png' alt='Sensr.net Cloud DVR for your Security camera'>"
The above works for me.