Encode all HTML entities in PHP
I've tried htmlentities but it appears to only encode a few html entities. I want to encode every single possible html entity.

For example. I want this
    http://

To become this
    http&#58;//

How do I do this?
Encode all HTML entities in PHP
===

I've tried htmlentities but it appears to only encode a few html entities. I want to encode every single possible html entity.

For example. I want this
    http://

To become this
    http&#58;//

How do I do this?