Add new comment

Phil Sun, 08/17/2008 - 16:20

In reply to by Phil

Comment

Por no hacer 4 pruebas con mb_convert_encoding...!

Estas dos líneas se encargan de todo (en realidad sólo la primera pero la segunda actúa con los apostrofes que parece no se convierten en su debido html-entity).

$value = mb_convert_encoding($value, "HTML-ENTITIES", "UTF-8" );
$value = str_replace("'","& #39;",$value);

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
Enter the characters shown in the image.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.