Entidade HTML Laravel descodificar com o UTF-8
estou a usar o Laravel 4, com PHP e MySQL. Tudo está em UTF-8
Tenho tÃtulos de blogues armazenados na minha base de dados, que se parecem com:This is an "example" post title
alt
title
Atributos.
Quando eu echo
o tÃtulo do meu blog, eu recebo algo como:
<img src="image.jpg" alt="This is an "example" post title" />
tentei o seguinte:
{{ html_entity_decode($blog_title, ENT_QUOTES, 'UTF-8') }}
This is an "example" post title
1
1 answers
Usar aspas Triple curly:
{{{ $blog_title }}}
O html_entity_decode () faz o oposto (e, portanto, deixa "
intocado). Como um gancho de memória.
" -> encoding -> "
" -> decoding -> "
2
Author: Boldewyn, 2014-09-03 12:17:40