Quantcast
Channel: Inline styling in Rails 4 erb - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Rajdeep Singh for Inline styling in Rails 4 erb

$
0
0

Do this instead

truncate(job_profile.description +'&nbsp;&nbsp;<font color="#999">[ '+ list.join(', ') +' ]</font>', :length => 100).html_safe

or

raw(truncate(job_profile.description +'&nbsp;&nbsp;<font color="#999">[ '+ list.join(', ') +' ]</font>', :length => 100))

Hope that helps!


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>