Return to Snippet

Revision: 9782
at November 21, 2008 11:54 by X3Maverick


Initial Code
htmlentities(iconv('utf-8', 'utf-8//IGNORE', strip_tags($row['title']) ), ENT_QUOTES, 'UTF-8')

Initial URL

                                

Initial Description
Useful for taking incorrectly-formatted UTF-8 strings containing HTML data, and converting them to correctly-formatted UTF-8 plain text.

A handy tool for displaying HTML stored in a database.

Initial Title
Convert incorrectly-formatted UTF-8 strings of HTML into correctly-formatted UTF-8 strings of plain text.

Initial Tags
database, php, html, xhtml, text, convert

Initial Language
PHP