Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a replacement for mb_convert_encoding

Status
Not open for further replies.

unomateo

IS-IT--Management
May 9, 2006
38
US
My script worked fine on my server, but when I moved it to godaddy the function mb_convert_encoding is not enabled.

I think I'm close with htmlentities, but it is just not working...

old: mb_convert_encoding($post[body],'HTML-ENTITIES', 'iso-8859-1')
new: htmlentities($post[body]);

the new function works but all the code tags are visible
output sample:
----------------------
Even though the barefoot shoes has been out there for some years by now, it’s these last years that it has become a well known training gadget. <br />
<br />
So, what is really a barefoot shoes about? Can it improve posture, eliminate cellulites, and even help control diabetes, like they claim it can?<br />
<br />
------------------------

how do I convert the <br /> tags back to html instead of visible code?
 
well that's what a translation to html-entities does. things like > become &gt; etc. all your mark up will be visible.

if this is your intention, and now you just want to swap <br/> back then just do a find and replace.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top