Thursday, February 17, 2011

HTML Entities The HTML Entities

So I was changing some documentation earlier and it had some UTF-8 characters grabbed from a database that I needed to encode and show the HTML entities. For example, I want to display the HTML entities of "básico" (excluding the quotes). I was already doing an htmlentities, but the string was displaying the encoded version on the site.

Five Minutes of Scratching My Head...

Duh! htmlentities(htmlentities()) Tada! "básico".

My ID:10T moment of the day that I figured I would share!

Cheers!

No comments: