Welcome Guest, Not a member yet? Register   Sign In
auto_typography_decode() ???

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?

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.

Theme © iAndrew 2016 - Forum software by © MyBB