presslabs / toplytics

Plugin for displaying most viewed content using data from a Google Analytics account. Relieves the DB from writing every click.
https://www.presslabs.com/code/toplytics/
30 stars 9 forks source link

Investigate potential char encoding display issues #143

Open pdobrescu opened 5 years ago

pdobrescu commented 5 years ago

It looks like Toplytics cannot display correctly special characters from post titles:

In the image below it should display

Potatisskal – farligt?

instead of

Potatisskal – farligt?

image

cristianuibar commented 5 years ago

This issue is due to the HTML special chars escaping done by Blade engine in the widget.blade.php file (default template file). To fix this behavior, one must replace the {{ and }} tags with {!! and !!} in a custom template.