Jump to content

Htmlentities Not Working


ProblemHelpPlease

Recommended Posts

I am using the following code but am not getting the expected results.

$message = htmlentities($message);

if $message contains !£$%^&*() before i run the functionthen after i run the function it returns !£$%^&*()As far as i am aware the htmlentities function should convert all the charaters to html entitiesAny ideas?

Link to comment
Share on other sites

It doesn't convert to numbered entities, it converts to named entities. Those characters have numbered entities, but not named. There's no reason to have an entity for most of those characters, they won't break anything being there.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...