• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert normal text into html entities text?

#1
[eluser]suba[/eluser]
Hi,
$str="Hello\' welcome, CI";

i want to convert html entities text.
Pls inform which helper or which class has this functionality?
pls help.

#2
[eluser]steelaz[/eluser]
You don't need CI for that, PHP has built-in functions to encode and decode html entities - http://us3.php.net/manual/en/function.htmlentities.php


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.