Base64 encoding in PHP not working for '&' and '#' ?
- by Angad
My knowledge about base64 is pretty limited. I am using it as an alternative to string escaping in a content management system, for I had been warned about how weaknesses have been found in mysql_real_escape_string(); and quite sheepishly so, as I am aware of how it buffs text size up.
PHP seems to truncate everything after an instance of # or & in the string; please help me out of this one.
Also, comment on whether using base64 to maintain the 'trueness' of post content in the CMS is just plain retarded, or a wise move.
Thanks for your time :)