• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
auto_typography_decode() ???

#1
[eluser]DaTran[/eluser]
Is there a similar function as described in the title?

I use auto_typography() to format a textarea form input before putting into the database, I want to be able to use a function that changes the <br>'s back to r\n\ or whatever and remove the <p>'s? So that I can place that data back into a form for editing.

Just wondering if there is a function in CI or if there is a plug in?

#2
[eluser]DaTran[/eluser]
Actually now that I think about it, I think the best practice is to store the form data as "RAW" and then when displaying it back into the form or page I can use the auto_typography() function.

For those that are slow minded like me Tongue Hope this helps.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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