Welcome Guest, Not a member yet? Register   Sign In
Loading a indented view

How can I indente the generated code when I load a view?

I'm indenting all the source code, but when the view is loaded some points (where exist any variable) are poorly indented.

Exists some function to fix this?

PS: Sorry for any wrong written word, I am not so good in English. Blush
Bootstrap, CI and SASS FTW! Heart

You can use a the php module php-tidy (http://php.net/manual/en/tidy.examples.basic.php) for this, or you can use a class like HTML Purifier (http://htmlpurifier.org/).

But I would not advise this just because it makes your HTML code look pretty if someone views your source. It takes quite some load and time to process this.

Since these options also alter your HTML generated code they will fix some simple issues like a missing closing tag, thats why if you decide to use this you will have to use it in production environment as well.

Theme © iAndrew 2016 - Forum software by © MyBB